mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-03 20:03:25 +01:00
Fix escaping of the map block (#10920)
This commit is contained in:
committed by
GitHub
parent
502c357895
commit
fe5108f7ca
@@ -98,8 +98,8 @@ msg_ok "Configured PatchMon"
|
||||
|
||||
msg_info "Configuring Nginx"
|
||||
cat <<EOF >/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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user