From 95dee60a18fee9d2de983527c61453b19030f282 Mon Sep 17 00:00:00 2001 From: Swarup Sengupta Date: Tue, 10 Feb 2026 10:11:07 +0530 Subject: [PATCH] add `UPSTREAM_PROXY` to configure the upstream proxy url in psiphon config --- assets/start-psiphon | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/start-psiphon b/assets/start-psiphon index 669709d..8b43ccd 100644 --- a/assets/start-psiphon +++ b/assets/start-psiphon @@ -19,6 +19,9 @@ if [ ! -f /config/psiphon.config ]; then if [ -n "${EGRESS_REGION}" ]; then sed -i -E 's/"EgressRegion"[[:space:]]*:[[:space:]]*"[^"]*"/"EgressRegion": "'${EGRESS_REGION}'"/' /config/psiphon.config fi + if [ -n "${UPSTREAM_PROXY}" ]; then + sed -i -E 's/"UpstreamProxyUrl"[[:space:]]*:[[:space:]]*"[^"]*"/"UpstreamProxyUrl": "'"${UPSTREAM_PROXY}"'"/' /config/psiphon.config + fi fi id psiphon > /dev/null 2>&1