# Minimal nginx config for serving the React SPA inside the frontend container. # The outer nginx reverse proxy forwards non-API requests here. server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; # Serve static assets with long cache (Vite hashes filenames) location /assets/ { expires 1y; add_header Cache-Control "public, immutable"; } # SPA fallback — any non-file route returns index.html location / { try_files $uri $uri/ /index.html; } }