From c6c27dcfc6f68566548b5aae4313388d5f1a3ded Mon Sep 17 00:00:00 2001 From: db123-test Date: Mon, 4 May 2026 16:44:38 +0330 Subject: [PATCH] fix: override Content-Length header in auth proxy config The proxy was forwarding the original Content-Length header to the proxied service, which caused issues with request body processing. Now setting it to an empty string to prevent nginx from passing the original content-length value. --- docs/deploy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/deploy.md b/docs/deploy.md index f5f056c..e8f1f69 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -42,7 +42,7 @@ location = /_auth_proxy { internal; proxy_pass_request_body on; - proxy_set_header Content-Length $content_length; + proxy_set_header Content-Length ""; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Original-Host $host; proxy_set_header X-Original-URI $request_uri;