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' }