fix(kong): disable request buffering for large file uploads

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 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-06 12:00:30 -08:00
parent 5d9e1f7d06
commit 19ad0d39fe
1 changed files with 1 additions and 0 deletions

View File

@ -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