From 94e05d99a4e702f21c4fd29db7d6ef07f7b7edf5 Mon Sep 17 00:00:00 2001 From: kalipso Date: Mon, 14 Apr 2025 21:12:12 +0200 Subject: [PATCH] [zineshop] fiddle with proxy_pass_header Authorization --- machines/durruti/host_config.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/machines/durruti/host_config.nix b/machines/durruti/host_config.nix index 6510a03..f64c991 100644 --- a/machines/durruti/host_config.nix +++ b/machines/durruti/host_config.nix @@ -80,10 +80,12 @@ 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 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; ''; }; };