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