Change nginx variable to use in filter of access_log

This commit is contained in:
Manuel de Brito Fontes 2017-02-17 18:21:46 -03:00
parent e603066d92
commit 8fd12b26ba

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;