m
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
upstream main {
|
||||
server validate.vouch.armos.zinomedia.de:80;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
@@ -29,11 +33,8 @@ server {
|
||||
# forward the /validate request to Vouch Proxy
|
||||
#proxy_pass http://vouch:9090/validate;
|
||||
|
||||
|
||||
|
||||
|
||||
# be sure to pass the original host header
|
||||
proxy_set_header Host $http_host;
|
||||
#proxy_set_header Host $http_host;
|
||||
|
||||
# Vouch Proxy only acts on the request headers
|
||||
proxy_pass_request_body off;
|
||||
@@ -51,8 +52,9 @@ server {
|
||||
#set $upstream 'http://vouch:9090/validate';
|
||||
#proxy_pass $upstream;
|
||||
|
||||
|
||||
proxy_pass http://validate.vouch.armos.zinomedia.de:80;
|
||||
proxy_pass http://main;
|
||||
proxy_set_header Host www.example.com;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
}
|
||||
|
||||
# if validate returns `401 not authorized` then forward the request to the error401block
|
||||
|
||||
Reference in New Issue
Block a user