some extra headers #285

Merged
paspo merged 1 commits from paspo/bglug.it:misc-headers into main 2024-10-13 13:50:46 +00:00
Showing only changes of commit 15ce28f5f8 - Show all commits

View File

@ -7,6 +7,13 @@ server {
root /wwwroot;
index index.html;
location ~ .* {
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload";
add_header Content-Security-Policy "default-src 'self'; img-src https://*; child-src 'none';";
}
location ~ ^/feed {
rewrite ^/feed$ /it/index.xml last;
rewrite ^/feed/.*$ /it/index.xml last;
@ -36,7 +43,6 @@ server {
location ~ .* {
error_page 404 /it/404.html;
}
}
gzip on;