Merge pull request #300 from aledbf/request_uri
Change nginx variable to use in filter of access_log
This commit is contained in:
commit
3c93a6544b
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ http {
|
||||||
|
|
||||||
{{/* map urls that should not appear in access.log */}}
|
{{/* map urls that should not appear in access.log */}}
|
||||||
{{/* http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log */}}
|
{{/* http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log */}}
|
||||||
map $request $loggable {
|
map $request_uri $loggable {
|
||||||
{{ range $reqUri := $cfg.SkipAccessLogURLs }}
|
{{ range $reqUri := $cfg.SkipAccessLogURLs }}
|
||||||
{{ $reqUri }} 0;{{ end }}
|
{{ $reqUri }} 0;{{ end }}
|
||||||
default 1;
|
default 1;
|
||||||
|
|
Loading…
Reference in a new issue