This commit is contained in:
zino
2023-12-05 23:46:21 +01:00
parent 81c1465902
commit 8134bd0d5d
2 changed files with 9 additions and 0 deletions

View File

@@ -27,6 +27,10 @@ server {
internal;
proxy_pass https://validate.vouch.armos.zinomedia.de;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;
# # be sure to pass the original host header
# proxy_set_header Host $http_host;

View File

@@ -36,6 +36,11 @@ server {
auth_request_set $auth_resp_jwt $upstream_http_x_vouch_jwt;
auth_request_set $auth_resp_err $upstream_http_x_vouch_err;
auth_request_set $auth_resp_failcount $upstream_http_x_vouch_failcount;
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 X-Forwarded-Host $http_host;
}
# location / {