Add http-access-log-path and stream-access-log-path options in configMap
This commit is contained in:
parent
8419bb60b5
commit
fc1c043437
4 changed files with 116 additions and 4 deletions
|
|
@ -331,7 +331,7 @@ http {
|
|||
{{ if $cfg.EnableSyslog }}
|
||||
access_log syslog:server={{ $cfg.SyslogHost }}:{{ $cfg.SyslogPort }} upstreaminfo if=$loggable;
|
||||
{{ else }}
|
||||
access_log {{ $cfg.AccessLogPath }} upstreaminfo {{ $cfg.AccessLogParams }} if=$loggable;
|
||||
access_log {{ or $cfg.HttpAccessLogPath $cfg.AccessLogPath }} upstreaminfo {{ $cfg.AccessLogParams }} if=$loggable;
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
|
@ -697,7 +697,7 @@ stream {
|
|||
{{ if $cfg.DisableAccessLog }}
|
||||
access_log off;
|
||||
{{ else }}
|
||||
access_log {{ $cfg.AccessLogPath }} log_stream {{ $cfg.AccessLogParams }};
|
||||
access_log {{ or $cfg.StreamAccessLogPath $cfg.AccessLogPath }} log_stream {{ $cfg.AccessLogParams }};
|
||||
{{ end }}
|
||||
|
||||
error_log {{ $cfg.ErrorLogPath }};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue