Merge pull request #300 from aledbf/request_uri

Change nginx variable to use in filter of access_log
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-02-17 19:46:22 -03:00 committed by GitHub
commit 3c93a6544b

View file

@ -81,7 +81,7 @@ http {
{{/* map urls that should not appear in 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 }}
{{ $reqUri }} 0;{{ end }}
default 1;