server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; # API an den admin-api Container weiterreichen ( /api/accounts -> /accounts ) location /api/ { proxy_pass http://admin-api:3000/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Authorization $http_authorization; } # config.js nicht cachen (enthält Laufzeit-Konfiguration) location = /config.js { add_header Cache-Control "no-store"; } # SPA-Fallback für react-admin Routing location / { try_files $uri $uri/ /index.html; } }