Add annotation to disable logs in a location (#2144)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-02-25 11:38:54 -03:00 committed by GitHub
parent edb3be64ea
commit 0dee303ac2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 165 additions and 0 deletions

View file

@ -686,6 +686,11 @@ stream {
}
{{ end }}
{{ if not $location.Logs.Access }}
access_log off;
{{ end }}
port_in_redirect {{ if $location.UsePortInRedirects }}on{{ else }}off{{ end }};
{{ if $all.Cfg.EnableVtsStatus }}{{ if $location.VtsFilterKey }} vhost_traffic_status_filter_by_set_key {{ $location.VtsFilterKey }};{{ end }}{{ end }}