mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-18 16:32:17 +00: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"
|
msg_info "Configuring Nginx"
|
||||||
cat <<EOF >/etc/nginx/sites-available/patchmon.conf
|
cat <<EOF >/etc/nginx/sites-available/patchmon.conf
|
||||||
map $http_x_forwarded_proto $proxy_corrected_scheme {
|
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
|
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'
|
https https; # If X-Forwarded-Proto is 'https', use 'https'
|
||||||
http http; # If X-Forwarded-Proto is 'http', use 'http'
|
http http; # If X-Forwarded-Proto is 'http', use 'http'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user