modified
This commit is contained in:
@@ -24,10 +24,13 @@ server {
|
|||||||
|
|
||||||
location = /validate {
|
location = /validate {
|
||||||
# forward the /validate request to Vouch Proxy
|
# forward the /validate request to Vouch Proxy
|
||||||
resolver 127.0.0.11;
|
proxy_pass http://127.0.0.1:9090/validate;
|
||||||
set $upstream "http://vouch:9090/validate";
|
|
||||||
proxy_pass $upstream;
|
#resolver 127.0.0.11;
|
||||||
#proxy_pass http://127.0.0.1:9090/validate;
|
#set $upstream "http://vouch:9090/validate";
|
||||||
|
#proxy_pass $upstream;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# be sure to pass the original host header
|
# be sure to pass the original host header
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
@@ -49,12 +52,12 @@ server {
|
|||||||
error_page 401 = @error401;
|
error_page 401 = @error401;
|
||||||
|
|
||||||
location @error401 {
|
location @error401 {
|
||||||
resolver 127.0.0.11;
|
#resolver 127.0.0.11;
|
||||||
set $upstream "https://vouch:9090/login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err";
|
#set $upstream "https://vouch:9090/login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err";
|
||||||
proxy_pass $upstream;
|
#proxy_pass $upstream;
|
||||||
|
|
||||||
# redirect to Vouch Proxy for login
|
# redirect to Vouch Proxy for login
|
||||||
#return 302 https://vouch.yourdomain.com:9090/login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err;
|
return 302 https://vouch.armos.zinomedia.de:9090/login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user