This commit is contained in:
zino
2023-12-05 18:26:00 +01:00
parent ac6445e1b0
commit d13e5fb1cc

View File

@@ -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