From 46849ff51724e24b19df6e4f2393c0ac9e330cc6 Mon Sep 17 00:00:00 2001 From: kalipso Date: Mon, 14 Apr 2025 15:15:41 +0200 Subject: [PATCH] [zineshop] update proxypass --- machines/durruti/host_config.nix | 6 +++++- machines/vpn/configuration.nix | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/machines/durruti/host_config.nix b/machines/durruti/host_config.nix index f93e3f8..56ee106 100644 --- a/machines/durruti/host_config.nix +++ b/machines/durruti/host_config.nix @@ -80,7 +80,11 @@ in locations."/" = { proxyPass = "http://10.0.0.10"; extraConfig = '' - proxy_set_header Authorization $http_authorization; # Pass the Authorization header + 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; ''; }; }; diff --git a/machines/vpn/configuration.nix b/machines/vpn/configuration.nix index e5ba652..ceb1bc4 100644 --- a/machines/vpn/configuration.nix +++ b/machines/vpn/configuration.nix @@ -72,6 +72,9 @@ 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 ''; };