Add annotation to disable logs in a location (#2144)
This commit is contained in:
parent
edb3be64ea
commit
0dee303ac2
8 changed files with 165 additions and 0 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue