diff --git a/nixos/modules/services/web-servers/nginx/tailscale-auth.nix b/nixos/modules/services/web-servers/nginx/tailscale-auth.nix index 09ddc3fffc56..527654add0b5 100644 --- a/nixos/modules/services/web-servers/nginx/tailscale-auth.nix +++ b/nixos/modules/services/web-servers/nginx/tailscale-auth.nix @@ -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