Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve headers #2133

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,38 @@ server {
gzip_proxied any;
gzip_min_length 1000;

add_header X-Content-Type-Options "nosniff";
add_header X-Permitted-Cross-Domain-Policies "none";
add_header Referrer-Policy "no-referrer";
add_header Cache-Control "public, max-age=86400";

location /config.js {
limit_except GET { deny all; }
expires -1;
}

location /sitemap.xml {
limit_except GET { deny all; }
expires -1;
}

location /robots.txt {
limit_except GET { deny all; }
expires -1;
}

location /auth {
limit_except GET { deny all; }
try_files $uri /auth.html;
}

location /publishing {
limit_except GET { deny all; }
try_files $uri /publishing.html;
}

location / {
limit_except GET { deny all; }
try_files $uri /index.html;
}
}