s modified: volumes/conf.d/code.zinomedia.de.conf
This commit is contained in:
@@ -1,8 +1,3 @@
|
|||||||
upstream vouch_proxy {
|
|
||||||
set $upstream vouch:9090;
|
|
||||||
server $upstream;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
#listen [::]:443 ssl;
|
#listen [::]:443 ssl;
|
||||||
@@ -34,6 +29,10 @@ 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 (1) {
|
||||||
|
proxy_pass http://vouch:9090/validate;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -56,8 +55,6 @@ server {
|
|||||||
#resolver_timeout 10s;
|
#resolver_timeout 10s;
|
||||||
#set $upstream "http://vouch:9090/validate";
|
#set $upstream "http://vouch:9090/validate";
|
||||||
#proxy_pass $upstream;
|
#proxy_pass $upstream;
|
||||||
|
|
||||||
proxy_pass http://vouch_proxy/validate;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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