From f75eb840c6022a36c1f470c9a286232b9e6fb6c1 Mon Sep 17 00:00:00 2001 From: ACX <8075870+acx10@users.noreply.github.com> Date: Wed, 7 Jan 2026 23:23:06 -0700 Subject: [PATCH] Configure reverse proxy to support streaming response (#2201) Co-authored-by: acx10 --- nginx.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nginx.conf b/nginx.conf index 8f5023303..d8d77ea20 100644 --- a/nginx.conf +++ b/nginx.conf @@ -42,6 +42,17 @@ http { proxy_pass http://localhost:8080; proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-Host $host; + + # Disable buffering for streaming responses + proxy_buffering off; + proxy_cache off; + proxy_set_header Connection ''; + proxy_http_version 1.1; + chunked_transfer_encoding on; + + # Set timeouts for long-running connections + proxy_read_timeout 86400s; + proxy_send_timeout 86400s; } # Proxy WebSocket requests (ws://) to the backend