m
This commit is contained in:
@@ -47,9 +47,13 @@ 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;
|
#resolver 127.0.0.11;
|
||||||
set $upstream "vouch:9090/validate";
|
#set $upstream "vouch:9090/validate";
|
||||||
proxy_pass http://$upstream;
|
#proxy_pass http://$upstream;
|
||||||
|
|
||||||
|
resolver 8.8.8.8;
|
||||||
|
proxy_pass http://vouch:9090/validate;
|
||||||
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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