From 171b3306c9e807fe39bdff59c2a5b54431ed5c96 Mon Sep 17 00:00:00 2001 From: Romain THERRAT Date: Thu, 23 Jan 2025 18:34:57 +0100 Subject: [PATCH] Forward original Host header to upstream This commit use a "hack" in order to prevent the $host var to be substitute by envsubst. --- auth.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auth.conf b/auth.conf index aaebd2e..e885bfb 100644 --- a/auth.conf +++ b/auth.conf @@ -7,5 +7,8 @@ server { proxy_pass http://${FORWARD_HOST}:${FORWARD_PORT}; proxy_read_timeout 900; + # Forward Host header + # ${no_value} is a hack to bypass envsubst substitution + proxy_set_header Host $${no_value}host; } }