# Common settings for all landing page server blocks # Security headers add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always; # Cache static assets aggressively (Astro hashes filenames) location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff|woff2|ttf|eot|webp|avif)$ { expires 1y; add_header Cache-Control "public, immutable"; } # SPA fallback: try file, then directory, then index.html location / { try_files $uri $uri/ $uri/index.html /index.html; } # Health check location /health { access_log off; return 200 "healthy\n"; add_header Content-Type text/plain; }