From ea3d4d1122a5ecd068c3b0f1df4e3a95bfd17d30 Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Sat, 14 Feb 2026 20:32:49 +0000 Subject: [PATCH] fix: disable nginx proxy buffering to enable AI streaming responses Nginx was buffering the entire backend response before forwarding it to the client, preventing SSE streaming on the /ai/v4/request endpoint. Co-Authored-By: Claude Opus 4.6 --- frontend/nginx/default.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/nginx/default.conf b/frontend/nginx/default.conf index 589f4ecf9..b61162e59 100644 --- a/frontend/nginx/default.conf +++ b/frontend/nginx/default.conf @@ -18,7 +18,11 @@ server { add_header referrer-policy 'strict-origin-when-cross-origin'; } location /api/ { - proxy_pass http://localhost:3000/; - proxy_set_header Host $host; + proxy_pass http://localhost:3000/; + proxy_set_header Host $host; + proxy_http_version 1.1; + proxy_set_header Connection ''; + proxy_buffering off; + proxy_cache off; } }