We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e4988f3 + 1c64252 commit b7fb2cfCopy full SHA for b7fb2cf
backend/templates/_hsts.conf
@@ -1,8 +1,8 @@
1
{% if certificate and certificate_id > 0 -%}
2
{% if ssl_forced == 1 or ssl_forced == true %}
3
{% if hsts_enabled == 1 or hsts_enabled == true %}
4
- # HSTS (ngx_http_headers_module is required) (31536000 seconds = 1 year)
5
- add_header Strict-Transport-Security "max-age=31536000;{% if hsts_subdomains == 1 or hsts_subdomains == true -%} includeSubDomains;{% endif %} preload" always;
+ # HSTS (ngx_http_headers_module is required) (63072000 seconds = 2 years)
+ add_header Strict-Transport-Security "max-age=63072000;{% if hsts_subdomains == 1 or hsts_subdomains == true -%} includeSubDomains;{% endif %} preload" always;
6
+{% endif %}
7
{% endif %}
8
-{% endif %}
0 commit comments