sail: Try setting STS headers for SSL only
This commit is contained in:
parent
e7c000eb0c
commit
6adbb3bbda
1 changed files with 1 additions and 4 deletions
|
@ -117,10 +117,7 @@ in
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
add_header Access-Control-Allow-Origin https://mastodon.kempkens.io;
|
add_header Access-Control-Allow-Origin https://mastodon.kempkens.io;
|
||||||
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
|
||||||
if ($ssl_protocol != "") {
|
|
||||||
add_header Strict-Transport-Security max-age=31536000\;\ includeSubDomains\;\ preload;
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
locations."/system/".alias = "/var/lib/mastodon/public-system/";
|
locations."/system/".alias = "/var/lib/mastodon/public-system/";
|
||||||
|
|
Loading…
Reference in a new issue