diff --git a/nginx-controller/nginx/ingress.tmpl b/nginx-controller/nginx/ingress.tmpl index 347c46a93c..2b2fed503e 100644 --- a/nginx-controller/nginx/ingress.tmpl +++ b/nginx-controller/nginx/ingress.tmpl @@ -29,6 +29,7 @@ server { return 301 https://$host$request_uri; } {{- if $server.HSTS}} + proxy_hide_header Strict-Transport-Security; add_header Strict-Transport-Security "max-age={{$server.HSTSMaxAge}}; {{if $server.HSTSIncludeSubdomains}}includeSubDomains; {{end}}preload" always;{{end}} {{- end}}