# nginx vor uvicorn: TLS-Terminierung (im Compose ohne TLS), statische Dateien, # SSE-taugliches Proxying (kein Buffering, lange Timeouts). upstream oamc_app { server app:8000; } server { listen 80; server_name _; client_max_body_size 25m; charset utf-8; location /static/ { proxy_pass http://oamc_app; proxy_cache_valid 200 10m; expires 1h; } # Server-Sent Events: Puffern aus, Verbindung offen halten location /api/v1/turniere/aktiv/anzeige { proxy_pass http://oamc_app; proxy_http_version 1.1; proxy_set_header Connection ""; proxy_buffering off; proxy_cache off; proxy_read_timeout 3600s; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } location / { proxy_pass http://oamc_app; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 60s; } }