# nginx.conf server { listen 80; server_name localhost; root /usr/share/nginx/html; index index.html; location / { try_files $uri /index.html; } # Optional: serve static files directly location ~* \.(js|css|png|jpg|jpeg|gif|svg|ico|woff2?|ttf|eot|otf|ttc|json)$ { try_files $uri =404; access_log off; add_header Cache-Control "public, max-age=31536000, immutable"; } }