From 666a409b66c254b62a0409319a91dde2b7343c9c Mon Sep 17 00:00:00 2001 From: Harry Youd Date: Fri, 12 Jun 2026 15:31:57 +0100 Subject: [PATCH] docker: parse TRUSTED_PROXIES from .env (#2378) --- docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 18e6f6e14..1b24ed5ad 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -5,7 +5,7 @@ if [ -f /pelican-data/.env ]; then echo ".env vars exist." # load specific env vars from .env used in the entrypoint and they are not already set - for VAR in "APP_KEY" "APP_INSTALLED" "DB_CONNECTION" "DB_HOST" "DB_PORT"; do + for VAR in "APP_KEY" "APP_INSTALLED" "DB_CONNECTION" "DB_HOST" "DB_PORT" "TRUSTED_PROXIES"; do echo "checking for ${VAR}" ## skip if it looks like it might try to execute code if (grep "${VAR}" .env | grep -qE "\$\(|=\`|\$#"); then echo "var in .env may be executable or a comment, skipping"; continue; fi