[zineshop] proxypass auth header
All checks were successful
Check flake syntax / flake-check (push) Successful in 6m22s

This commit is contained in:
2025-04-14 13:17:19 +02:00
parent a07f7b22f0
commit 5466c85510
2 changed files with 9 additions and 0 deletions

View File

@@ -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
'';
};
};

View File

@@ -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
'';
};
};