Move proxy_pass directive to correct position in nginx location block and update proxy settings: enable request body forwarding (proxy_pass_request_body on) and pass original Content-Length header (from $content_length variable) instead of stripping it, ensuring auth-proxy receives full request payloads.