nixos/nginx/tailscale-auth: drop Content-Length header

When a request has no body but Content-Length does have a value, the
request can hang waiting for the body.

We should clear out the Content-Length header when forwarding the
request without the body.
This commit is contained in:
Bouke van der Bijl
2026-05-04 12:31:45 +02:00
parent a5f16a4a4e
commit 71e18ef931
@@ -73,6 +73,7 @@ in
proxy_pass http://unix:${cfgAuth.socketPath};
proxy_pass_request_body off;
proxy_set_header Content-Length "";
# Upstream uses $http_host here, but we are using gixy to check nginx configurations
# gixy wants us to use $host: https://github.com/yandex/gixy/blob/master/docs/en/plugins/hostspoofing.md