yay
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
/ Release (push) Has been cancelled
/ Build - Windows x86 (push) Has been cancelled
/ Build - Windows x86_64 (push) Has been cancelled
/ Build - Android aarch64 (push) Has been cancelled
/ Build - Android armv7 (push) Has been cancelled
/ Build - Freebsd x86 (push) Has been cancelled
/ Build - Freebsd x86_64 (push) Has been cancelled
/ Build - Linux aarch64 (push) Has been cancelled
/ Build - Linux armv7hf (push) Has been cancelled
/ Build - Linux x86 (push) Has been cancelled
/ Build - Linux x86_64 (push) Has been cancelled
/ Build - MacOS aarch64 (push) Has been cancelled
/ Build - MacOS x86_64 (push) Has been cancelled

This commit is contained in:
hexlocation 2024-12-17 22:11:33 +01:00
parent fab129b516
commit 1afda73923
Signed by: hex
GPG key ID: A19EFFAAF8C00FCF
2 changed files with 21 additions and 2 deletions

View file

@ -52,12 +52,13 @@ ARG PROFILE=release
COPY --from=builder_release /build/target/${PROFILE}/wstunnel wstunnel
ENV RUST_LOG="INFO"
ENV SERVER_PROTOCOL="wss"
ENV SERVER_PROTOCOL="ws"
ENV SERVER_LISTEN="[::]"
ENV SERVER_PORT="8080"
ENV EXTRA_ARGS="--restrict-to 192.168.2.1:19110"
EXPOSE 8080
USER app
ENTRYPOINT ["/usr/bin/dumb-init", "-v", "--"]
CMD ["/bin/sh", "-c", "exec /home/app/wstunnel server ${SERVER_PROTOCOL}://${SERVER_LISTEN}:${SERVER_PORT}"]
CMD ["/bin/sh", "-c", "exec /home/app/wstunnel server ${EXTRA_ARGS} ${SERVER_PROTOCOL}://${SERVER_LISTEN}:${SERVER_PORT}"]