From 75df7b86c45d207765c87f7cb4c83b64fbbd6855 Mon Sep 17 00:00:00 2001 From: Daan Selen Date: Tue, 25 Mar 2025 15:22:12 +0100 Subject: [PATCH] added "true" to the all option for trusted_proxy env variable. --- docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 038edfba..619e08ea 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -163,7 +163,7 @@ if [[ "$DYNAMIC_CONFIG" =~ ^(true|yes)$ ]]; then if [[ -n $TRUSTED_PROXY ]]; then 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" jq --argjson trusted_proxy "true" \ '.settings.trustedProxy = $trusted_proxy' \