From 4324e8e07885e37cb18c22df66f1eb29de965639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Thu, 7 May 2026 12:00:21 -0300 Subject: [PATCH] fix: disable nginx proxy buffering to allow SSE real-time updates in production --- nginx.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nginx.conf b/nginx.conf index a92a7b1..82c8375 100644 --- a/nginx.conf +++ b/nginx.conf @@ -11,9 +11,13 @@ server { location /api/ { proxy_pass http://backend:3004/api/; proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; - proxy_cache_bypass $http_upgrade; + + # SSE specific settings + proxy_buffering off; + proxy_cache off; + proxy_set_header Connection ''; + chunked_transfer_encoding off; + proxy_read_timeout 24h; } } \ No newline at end of file