Merge pull request #563 from aledbf/hsts-preload

Add option to disable hsts preload
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-04-05 23:20:35 -03:00 committed by GitHub
commit 7ca7652ab2
3 changed files with 7 additions and 1 deletions

View file

@ -229,7 +229,7 @@ http {
{{ end }}
{{ if (and (not (empty $server.SSLCertificate)) $cfg.HSTS) }}
more_set_headers "Strict-Transport-Security: max-age={{ $cfg.HSTSMaxAge }}{{ if $cfg.HSTSIncludeSubdomains }}; includeSubDomains{{ end }}; preload";
more_set_headers "Strict-Transport-Security: max-age={{ $cfg.HSTSMaxAge }}{{ if $cfg.HSTSIncludeSubdomains }}; includeSubDomains{{ end }}; {{ if $cfg.HSTSPreload }}preload{{ end }}";
{{ end }}
{{ if $cfg.EnableVtsStatus }}vhost_traffic_status_filter_by_set_key $geoip_country_code country::$server_name;{{ end }}