2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ fi
/go/build.sh ${ARGS}
__SCRIPT__
FROM alpine:3.22.1
FROM alpine:3.23.3
ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT
+4 -1
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
@@ -43,4 +46,4 @@ chown -R psiphon:psiphon /config
su -s /bin/sh psiphon <<EOF
psiphon -config /config/psiphon.config
EOF
EOF