mirror of
https://github.com/nethunterzist/trendyol-analiz
synced 2026-07-01 01:17:04 +00:00
fix: add Traefik SSE streaming support for backend
- flushInterval=100ms prevents Traefik from buffering SSE responses - X-Accel-Buffering=no header disables proxy buffering - Fixes SSE connection dropping during report generation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -39,6 +39,10 @@ services:
|
||||
|
||||
labels:
|
||||
- "traefik.http.services.backend.loadbalancer.server.port=8001"
|
||||
# SSE streaming support - flush immediately, don't buffer
|
||||
- "traefik.http.services.backend.loadbalancer.responseForwarding.flushInterval=100ms"
|
||||
# Long timeout for report generation (up to 10 minutes)
|
||||
- "traefik.http.middlewares.backend-timeout.headers.customResponseHeaders.X-Accel-Buffering=no"
|
||||
|
||||
environment:
|
||||
# Python environment
|
||||
|
||||
Reference in New Issue
Block a user