diff --git a/docs/deploy.md b/docs/deploy.md index e59c7e0..f5f056c 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -37,17 +37,19 @@ docker-compose up -d # spoofed. If you need a CDN, configure the realip module instead # of trusting the header. +location = /_auth_proxy { location = /_auth_proxy { internal; - proxy_pass http://auth-proxy:8080/auth; - - proxy_pass_request_body off; - proxy_set_header Content-Length ""; + proxy_pass_request_body on; + proxy_set_header Content-Length $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; proxy_set_header Authorization $http_authorization; + + proxy_pass http://auth-proxy:8080/auth; +} } ```