Commit 94fd18c3 by Fred Smith

add HSTS header

parent 578cabf0
......@@ -109,6 +109,7 @@ server {
proxy_buffering off;
}
location / {
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
{% if item.value.auth is defined %}
if ($cookie_homenetauth != "{{ homenetauth_cookie }}") {
rewrite ^(.*)$ https://auth.smith.bz/?$host$1 break;
......@@ -124,6 +125,7 @@ server {
}
{% else %}
location / {
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
{% if item.value.auth is defined %}
if ($cookie_homenetauth != "{{ homenetauth_cookie }}") {
rewrite ^(.*)$ https://auth.smith.bz/?$host$1 break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment