From 5466c855107ca46517a2e6b1b174191fc8a74bc7 Mon Sep 17 00:00:00 2001 From: kalipso Date: Mon, 14 Apr 2025 13:17:19 +0200 Subject: [PATCH] [zineshop] proxypass auth header --- machines/durruti/host_config.nix | 5 +++++ machines/vpn/configuration.nix | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/machines/durruti/host_config.nix b/machines/durruti/host_config.nix index c037a9d..644278d 100644 --- a/machines/durruti/host_config.nix +++ b/machines/durruti/host_config.nix @@ -80,6 +80,11 @@ in locations."/" = { proxyPass = "http://10.0.0.10"; 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; + proxy_set_header Authorization $http_authorization; # Pass the Authorization header ''; }; }; diff --git a/machines/vpn/configuration.nix b/machines/vpn/configuration.nix index 6eb1d22..ceb1bc4 100644 --- a/machines/vpn/configuration.nix +++ b/machines/vpn/configuration.nix @@ -72,6 +72,10 @@ with lib; proxyPass = "http://10.100.0.101"; 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; + proxy_set_header Authorization $http_authorization; # Pass the Authorization header ''; }; };