This commit is contained in:
Mattias Wadman 2016-05-06 11:10:24 +00:00
commit 28be43ff82

View file

@ -153,7 +153,9 @@ server {
ssl_dhparam {{ printf "/etc/nginx/certs/%s.dhparam.pem" $cert }};
{{ end }}
{{ if ne (coalesce (first (groupByKeys $containers "Env.SKIP_HSTS")) "") "1" }}
add_header Strict-Transport-Security "max-age=31536000";
{{ end }}
{{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }}
include {{ printf "/etc/nginx/vhost.d/%s" $host }};