server { listen 80; server_name localhost; root /usr/share/nginx/html; index index.html; # Frontend - statische Dateien location / { try_files $uri $uri/ /index.html; } # API Proxy location ^~ /api { rewrite ^/api/(.*)$ /$1 break; proxy_pass http://backend:8001; proxy_http_version 1.1; proxy_set_header Host $host; proxy_cache off; proxy_buffering off; proxy_read_timeout 600s; proxy_connect_timeout 10s; proxy_send_timeout 600s; } }