choire: Update NGINX config
Some checks failed
Build, check & Test / run (push) Failing after 14s

This commit is contained in:
Florian Bouillon 2023-10-09 08:12:25 +00:00
parent 18598b0049
commit b58740a229

View File

@ -23,8 +23,18 @@ http {
error_page 404 /404.html;
error_page 500 502 503 504 /500.html;
# Security headers (note: temporarely unvailable "prefetch-src 'self'; ")
add_header Content-Security-Policy "default-src 'self'; frame-ancestors 'none'; form-action 'self'; manifest-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src data: 'self'; font-src 'self'; connect-src 'self'; base-uri 'self';";
add_header X-Frame-Options "DENY";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
add_header Referrer-Policy "no-referrer";
add_header Permissions-Policy "geolocation=(), microphone=(), interest-cohort=()";
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
add_header X-Download-Options "noopen";
location / {
try_files $uri $uri.html /$uri /index.html;
try_files $uri $uri.html $uri/index.html /$uri /$uri/index.html /index.html;
}
# Plausible script