server { listen 80; listen [::]:80; server_name _; root /usr/share/nginx/html; index index.html; server_tokens off; add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always; add_header X-Frame-Options "SAMEORIGIN" always; location = /healthz { access_log off; default_type text/plain; return 200 "ok\n"; } location = /docs { return 301 /docs/; } location /docs/ { try_files $uri $uri/ /docs/index.html; } location / { try_files $uri $uri/ /index.html; } location ~* \.(?:css|js|mjs|json|svg|png|jpg|jpeg|gif|webp|ico|woff2?)$ { expires 1y; add_header Cache-Control "public, immutable"; try_files $uri =404; } location ~ /\. { deny all; } }