Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions frontend/nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';

Copilot AI Feb 15, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding proxy_set_header X-Accel-Buffering no; to explicitly disable nginx's internal buffering mechanism. While proxy_buffering off; disables the main buffering, X-Accel-Buffering provides an additional layer of control specifically designed for streaming responses and ensures no buffering occurs at any level in nginx.

Suggested change
proxy_set_header Connection '';
proxy_set_header Connection '';
proxy_set_header X-Accel-Buffering no;

Copilot uses AI. Check for mistakes.
proxy_buffering off;

Copilot AI Feb 15, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding proxy_read_timeout configuration to prevent premature connection timeouts during long-running AI streaming responses. SSE connections can remain open for extended periods, and the default nginx timeout (60s) may cause issues with longer AI processing. Add something like proxy_read_timeout 300s; to allow sufficient time for AI responses.

Suggested change
proxy_buffering off;
proxy_buffering off;
proxy_read_timeout 300s;

Copilot uses AI. Check for mistakes.
proxy_cache off;
}
}
Loading