From a29339bc294639dcc1c5990326fd4b55ee74e632 Mon Sep 17 00:00:00 2001 From: kalipso Date: Mon, 14 Apr 2025 22:01:19 +0200 Subject: [PATCH] [zineshop] set auth header at vpn --- machines/vpn/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/machines/vpn/configuration.nix b/machines/vpn/configuration.nix index 6eb1d22..0f99718 100644 --- a/machines/vpn/configuration.nix +++ b/machines/vpn/configuration.nix @@ -72,6 +72,11 @@ 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 + proxy_pass_header Authorization; ''; }; };