server { listen 80; root /usr/share/nginx/html; index index.html; # config.js immer frisch laden (kein Cache — enthält Runtime-Config) location = /config.js { add_header Cache-Control "no-store"; } # SPA: alle Routen auf index.html location / { try_files $uri $uri/ /index.html; } # API-Requests an Backend weiterleiten (optional, falls kein reverse proxy davor) # location /api/ { # proxy_pass https://BACKEND_HOST:BACKEND_PORT; # proxy_ssl_verify off; # } }