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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user