mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-07-16 12:21:51 -04:00
added "true" to the all option for trusted_proxy env variable.
This commit is contained in:
parent
e3636c0452
commit
75df7b86c4
@ -163,7 +163,7 @@ if [[ "$DYNAMIC_CONFIG" =~ ^(true|yes)$ ]]; then
|
|||||||
if [[ -n $TRUSTED_PROXY ]]; then
|
if [[ -n $TRUSTED_PROXY ]]; then
|
||||||
echo "Setting trustedProxy... - $REVERSE_PROXY_STRING"
|
echo "Setting trustedProxy... - $REVERSE_PROXY_STRING"
|
||||||
|
|
||||||
if [[ $TRUSTED_PROXY == "all" ]]; then
|
if [[ $TRUSTED_PROXY == "all" ]] || [[ $TRUSTED_PROXY == "true" ]]; then
|
||||||
sed -i 's/"_trustedProxy"/"trustedProxy"/' "$CONFIG_FILE"
|
sed -i 's/"_trustedProxy"/"trustedProxy"/' "$CONFIG_FILE"
|
||||||
jq --argjson trusted_proxy "true" \
|
jq --argjson trusted_proxy "true" \
|
||||||
'.settings.trustedProxy = $trusted_proxy' \
|
'.settings.trustedProxy = $trusted_proxy' \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user