Moved v3 code from NginxProxyManager/nginx-proxy-manager-3 to NginxProxyManager/nginx-proxy-manager
This commit is contained in:
8
backend/embed/nginx/_hsts.conf.hbs
Normal file
8
backend/embed/nginx/_hsts.conf.hbs
Normal file
@ -0,0 +1,8 @@
|
||||
{{#if certificate}}
|
||||
{{#if ssl_forced}}
|
||||
{{#if hsts_enabled}}
|
||||
# HSTS (ngx_http_headers_module is required) (63072000 seconds = 2 years)
|
||||
add_header Strict-Transport-Security "max-age=63072000;{{#if hsts_subdomains}} includeSubDomains;{{/if}} preload" always;
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
Reference in New Issue
Block a user