server { listen 80; server_name _; server_tokens off; root /usr/share/nginx/html; index index.html; add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data: blob:; font-src 'self' data:; connect-src 'self'; frame-ancestors 'self'; base-uri 'self'; form-action 'self'" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always; add_header X-Content-Type-Options "nosniff" always; add_header X-Frame-Options "SAMEORIGIN" always; add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always; location = /healthz { access_log off; add_header Content-Type text/plain; return 200 "ok\n"; } location / { try_files $uri $uri/ /index.html; } }