more observatory headers
https://developer.mozilla.org/en-US/observatory/analyze?host=git.jakstys.lt
This commit is contained in:
parent
f929079fe2
commit
37239ac18a
@ -244,14 +244,15 @@ in
|
||||
encode gzip
|
||||
'';
|
||||
"jakstys.lt".extraConfig = ''
|
||||
header Strict-Transport-Security "max-age=31536000"
|
||||
header Content-Security-Policy "default-src 'self'"
|
||||
header X-Content-Type-Options "nosniff"
|
||||
header Content-Security-Policy "frame-ancestors 'none'"
|
||||
header X-Frame-Options "DENY"
|
||||
header {
|
||||
Strict-Transport-Security "max-age=2592000"
|
||||
Content-Security-Policy "default-src 'self'"
|
||||
X-Content-Type-Options "nosniff"
|
||||
Content-Security-Policy "frame-ancestors 'none'"
|
||||
X-Frame-Options "DENY"
|
||||
|
||||
|
||||
header /_/* Cache-Control "public, max-age=31536000, immutable"
|
||||
/_/* Cache-Control "public, max-age=31536000, immutable"
|
||||
}
|
||||
|
||||
root * /var/www/jakstys.lt
|
||||
file_server {
|
||||
|
@ -85,6 +85,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=2592000"
|
||||
Content-Security-Policy "default-src 'self'"
|
||||
X-Content-Type-Options "nosniff"
|
||||
Content-Security-Policy "frame-ancestors 'none'"
|
||||
X-Frame-Options "DENY"
|
||||
}
|
||||
|
||||
reverse_proxy 127.0.0.1:${toString myData.ports.gitea}
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user