modified
This commit is contained in:
@@ -24,10 +24,13 @@ server {
|
||||
|
||||
location = /validate {
|
||||
# forward the /validate request to Vouch Proxy
|
||||
resolver 127.0.0.11;
|
||||
set $upstream "http://vouch:9090/validate";
|
||||
proxy_pass $upstream;
|
||||
#proxy_pass http://127.0.0.1:9090/validate;
|
||||
proxy_pass http://127.0.0.1:9090/validate;
|
||||
|
||||
#resolver 127.0.0.11;
|
||||
#set $upstream "http://vouch:9090/validate";
|
||||
#proxy_pass $upstream;
|
||||
|
||||
|
||||
|
||||
# be sure to pass the original host header
|
||||
proxy_set_header Host $http_host;
|
||||
@@ -49,12 +52,12 @@ server {
|
||||
error_page 401 = @error401;
|
||||
|
||||
location @error401 {
|
||||
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";
|
||||
proxy_pass $upstream;
|
||||
#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";
|
||||
#proxy_pass $upstream;
|
||||
|
||||
# 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