This commit is contained in:
zino
2023-12-05 17:49:16 +01:00
parent 964c36368c
commit ece07dcec0

View File

@@ -29,9 +29,6 @@ server {
# forward the /validate request to Vouch Proxy
#proxy_pass http://vouch:9090/validate;
if ($http_host = $http_host) {
proxy_pass http://vouch:9090/validate;
}
@@ -51,10 +48,9 @@ server {
auth_request_set $auth_resp_err $upstream_http_x_vouch_err;
auth_request_set $auth_resp_failcount $upstream_http_x_vouch_failcount;
#resolver 127.0.0.11 valid=60s ipv6=off;
#resolver_timeout 10s;
#set $upstream "http://vouch:9090/validate";
#proxy_pass $upstream;
resolver 127.0.0.11;
set $upstream 'http://vouch:9090/validate';
proxy_pass $upstream;
}
# if validate returns `401 not authorized` then forward the request to the error401block