2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ fi
/go/build.sh ${ARGS} /go/build.sh ${ARGS}
__SCRIPT__ __SCRIPT__
FROM alpine:3.23.2 FROM alpine:3.23.3
ARG TARGETOS ARG TARGETOS
ARG TARGETARCH ARG TARGETARCH
ARG TARGETVARIANT ARG TARGETVARIANT
+4 -1
View File
@@ -19,6 +19,9 @@ if [ ! -f /config/psiphon.config ]; then
if [ -n "${EGRESS_REGION}" ]; then if [ -n "${EGRESS_REGION}" ]; then
sed -i -E 's/"EgressRegion"[[:space:]]*:[[:space:]]*"[^"]*"/"EgressRegion": "'${EGRESS_REGION}'"/' /config/psiphon.config sed -i -E 's/"EgressRegion"[[:space:]]*:[[:space:]]*"[^"]*"/"EgressRegion": "'${EGRESS_REGION}'"/' /config/psiphon.config
fi fi
if [ -n "${UPSTREAM_PROXY}" ]; then
sed -i -E 's|"UpstreamProxyUrl"[[:space:]]*:[[:space:]]*"[^"]*"|"UpstreamProxyUrl": "'${UPSTREAM_PROXY}'"|' /config/psiphon.config
fi
fi fi
id psiphon > /dev/null 2>&1 id psiphon > /dev/null 2>&1
@@ -43,4 +46,4 @@ chown -R psiphon:psiphon /config
su -s /bin/sh psiphon <<EOF su -s /bin/sh psiphon <<EOF
psiphon -config /config/psiphon.config psiphon -config /config/psiphon.config
EOF EOF