From 751b7629e413fc96037a5671aaa9079895e0f593 Mon Sep 17 00:00:00 2001 From: Philip Peterson <1326208+philip-peterson@users.noreply.github.com> Date: Tue, 30 Jun 2026 20:56:54 -0700 Subject: [PATCH] fix atitraining 400 bad request from duplicate proxy headers nginx sent Host/X-Real-IP/X-Forwarded-For/X-Forwarded-Proto twice (explicit proxy_set_header plus the included recommended-proxy-headers file), which Apache rejected as a malformed request due to the duplicate Host header. Removed the redundant explicit headers. Co-Authored-By: Claude Sonnet 5 --- nixos/nginx.nix | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nixos/nginx.nix b/nixos/nginx.nix index 464493c..d283993 100644 --- a/nixos/nginx.nix +++ b/nixos/nginx.nix @@ -96,12 +96,6 @@ locations."/" = { proxyPass = "http://127.0.0.1:3015/"; - extraConfig = '' - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - ''; }; };