Skip to content

Commit 3e5434f

Browse files
guguclaude
andauthored
fix: disable nginx proxy buffering to enable AI streaming responses (#1600)
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 <noreply@anthropic.com>
1 parent 3bf8a7e commit 3e5434f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

frontend/nginx/default.conf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ server {
1818
add_header referrer-policy 'strict-origin-when-cross-origin';
1919
}
2020
location /api/ {
21-
proxy_pass http://localhost:3000/;
22-
proxy_set_header Host $host;
21+
proxy_pass http://localhost:3000/;
22+
proxy_set_header Host $host;
23+
proxy_http_version 1.1;
24+
proxy_set_header Connection '';
25+
proxy_buffering off;
26+
proxy_cache off;
2327
}
2428
}

0 commit comments

Comments
 (0)