mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-24 05:38:15 -05:00
9 lines
292 B
Handlebars
9 lines
292 B
Handlebars
|
{{#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}}
|