Add SKIP_HSTS support
This commit is contained in:
parent
48c31836be
commit
6cdf1e6697
1 changed files with 2 additions and 0 deletions
|
@ -135,7 +135,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 }};
|
||||
|
|
Loading…
Reference in a new issue