This commit is contained in:
zino
2023-12-05 21:43:35 +01:00
parent 0a545f5ad4
commit 3fea8330b5
3 changed files with 55 additions and 25 deletions

View File

@@ -2,6 +2,9 @@
auth_request /validate;
location = /validate {
# forward the /validate request to Vouch Proxy
proxy_pass https://validate.vouch.armos.zinomedia.de:443;
# be sure to pass the original host header
proxy_set_header Host $http_host;
@@ -16,8 +19,6 @@ location = /validate {
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_pass https://validate.vouch.armos.zinomedia.de:443;
}
# if validate returns `401 not authorized` then forward the request to the error401block