Motiejus Jakštys 2024-08-24 16:27:29 +03:00
parent f929079fe2
commit 37239ac18a
2 changed files with 16 additions and 7 deletions

View File

@ -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 {

View File

@ -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}
'';
};