Add support to disable server_tokens directive
This commit is contained in:
parent
567fa3b456
commit
af9375aa96
2 changed files with 16 additions and 8 deletions
|
|
@ -68,6 +68,8 @@ http {
|
|||
gzip_proxied any;
|
||||
{{ end }}
|
||||
|
||||
server_tokens {{ if $cfg.ShowServerTokens }}on{{ else }}off{{ end }};
|
||||
|
||||
client_max_body_size "{{ $cfg.BodySize }}";
|
||||
|
||||
log_format upstreaminfo '{{ if $cfg.UseProxyProtocol }}$proxy_protocol_addr{{ else }}$remote_addr{{ end }} - '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue