# Simplified nginx config for test.coppertone.tech frontend # API routing is handled by the external nginx reverse proxy server { listen 80; server_name localhost; root /usr/share/nginx/html; index index.html index.htm; # Security Headers add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Content-Type-Options "nosniff" always; add_header X-XSS-Protection "1; mode=block" always; # Prevent caching of index.html location = /index.html { add_header Cache-Control "no-cache, no-store, must-revalidate"; add_header Pragma "no-cache"; add_header Expires "0"; } # Cache static assets location /assets/ { add_header Cache-Control "public, max-age=31536000, immutable"; } # Serve markdown files location ~* \.md$ { types { text/plain md; } add_header Content-Type text/plain; } # SPA routing - serve index.html for all non-file requests location / { try_files $uri $uri/ /index.html; } # Health check location /health { return 200 "OK"; add_header Content-Type text/plain; } }