From 19ad0d39fe348ef0af77aa5ac01d8e964fdf21e5 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 6 Mar 2026 12:00:30 -0800 Subject: [PATCH] fix(kong): disable request buffering for large file uploads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add KONG_NGINX_PROXY_PROXY_REQUEST_BUFFERING=off so Kong streams the request body to admin-service without buffering to disk. Root cause: Nginx streams (proxy_request_buffering off) → Kong buffers to disk → Kong returns 400 with empty body when forwarding to upstream. Fix: Kong also streams, matching Nginx's streaming behavior end-to-end. Co-Authored-By: Claude Sonnet 4.6 --- backend/docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/docker-compose.yml b/backend/docker-compose.yml index cb62bde..9cb4f03 100644 --- a/backend/docker-compose.yml +++ b/backend/docker-compose.yml @@ -182,6 +182,7 @@ services: KONG_ADMIN_ERROR_LOG: /dev/stderr KONG_ADMIN_LISTEN: 0.0.0.0:8001 KONG_PROXY_LISTEN: 0.0.0.0:8080 + KONG_NGINX_PROXY_PROXY_REQUEST_BUFFERING: "off" ports: - "48080:8080" # Proxy (frontend connects here) - "127.0.0.1:48001:8001" # Admin API