Allow configuration of features underscores_in_headers and ignore_invalid_headers

This commit is contained in:
Manuel de Brito Fontes 2017-04-20 18:12:16 -03:00
parent d8d9a5ff17
commit 12d4aadf74
3 changed files with 26 additions and 6 deletions

View file

@ -69,6 +69,9 @@ http {
server_names_hash_bucket_size {{ $cfg.ServerNameHashBucketSize }};
map_hash_bucket_size {{ $cfg.MapHashBucketSize }};
underscores_in_headers {{ if $cfg.IgnoreInvalidHeaders }}on{{ else }}off{{ end }};
ignore_invalid_headers {{ if $cfg.EnableUnderscoresInHeaders }}on{{ else }}off{{ end }};
include /etc/nginx/mime.types;
default_type text/html;
{{ if $cfg.UseGzip }}