Add support to disable server_tokens directive

This commit is contained in:
Manuel de Brito Fontes 2016-12-29 12:37:37 -03:00
parent 567fa3b456
commit af9375aa96
2 changed files with 16 additions and 8 deletions

View file

@ -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 }} - '