Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d23651caf |
+1
-1
@@ -17,7 +17,7 @@ fi
|
|||||||
/go/build.sh ${ARGS}
|
/go/build.sh ${ARGS}
|
||||||
__SCRIPT__
|
__SCRIPT__
|
||||||
|
|
||||||
FROM alpine:3.23.3
|
FROM alpine:3.23.2
|
||||||
ARG TARGETOS
|
ARG TARGETOS
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
ARG TARGETVARIANT
|
ARG TARGETVARIANT
|
||||||
|
|||||||
@@ -19,9 +19,6 @@ 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
|
||||||
@@ -46,4 +43,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
|
||||||
Reference in New Issue
Block a user