m
This commit is contained in:
@@ -29,9 +29,6 @@ server {
|
|||||||
# forward the /validate request to Vouch Proxy
|
# forward the /validate request to Vouch Proxy
|
||||||
#proxy_pass http://vouch:9090/validate;
|
#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_err $upstream_http_x_vouch_err;
|
||||||
auth_request_set $auth_resp_failcount $upstream_http_x_vouch_failcount;
|
auth_request_set $auth_resp_failcount $upstream_http_x_vouch_failcount;
|
||||||
|
|
||||||
#resolver 127.0.0.11 valid=60s ipv6=off;
|
resolver 127.0.0.11;
|
||||||
#resolver_timeout 10s;
|
set $upstream 'http://vouch:9090/validate';
|
||||||
#set $upstream "http://vouch:9090/validate";
|
proxy_pass $upstream;
|
||||||
#proxy_pass $upstream;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# if validate returns `401 not authorized` then forward the request to the error401block
|
# if validate returns `401 not authorized` then forward the request to the error401block
|
||||||
|
|||||||
Reference in New Issue
Block a user