add UPSTREAM_PROXY to configure the upstream proxy url in psiphon config

This commit is contained in:
Swarup Sengupta
2026-02-10 10:11:07 +05:30
parent ec151ec966
commit 95dee60a18
+3
View File
@@ -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