From fe5108f7ca2c40662f1ba889dcab78a8b2206417 Mon Sep 17 00:00:00 2001 From: Christiaan Goossens <9487666+christiaangoossens@users.noreply.github.com> Date: Sun, 18 Jan 2026 18:18:00 +0100 Subject: [PATCH] Fix escaping of the map block (#10920) --- install/patchmon-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/patchmon-install.sh b/install/patchmon-install.sh index 01cae4225..22fa8bb21 100644 --- a/install/patchmon-install.sh +++ b/install/patchmon-install.sh @@ -98,8 +98,8 @@ msg_ok "Configured PatchMon" msg_info "Configuring Nginx" cat </etc/nginx/sites-available/patchmon.conf -map $http_x_forwarded_proto $proxy_corrected_scheme { - default $scheme; # Fallback to Nginx's actual connection scheme if no X-Forwarded-Proto header was set +map \$http_x_forwarded_proto \$proxy_corrected_scheme { + default \$scheme; # Fallback to Nginx's actual connection scheme if no X-Forwarded-Proto header was set https https; # If X-Forwarded-Proto is 'https', use 'https' http http; # If X-Forwarded-Proto is 'http', use 'http' }