From d13e5fb1ccd529c0caab19766bc061fb94fb81c3 Mon Sep 17 00:00:00 2001 From: zino Date: Tue, 5 Dec 2023 18:26:00 +0100 Subject: [PATCH] m --- volumes/conf.d/code.zinomedia.de.conf | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/volumes/conf.d/code.zinomedia.de.conf b/volumes/conf.d/code.zinomedia.de.conf index a0267e6..c872f88 100644 --- a/volumes/conf.d/code.zinomedia.de.conf +++ b/volumes/conf.d/code.zinomedia.de.conf @@ -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