mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-11-23 16:06:32 +03:00
Update Dockerfile (#1675)
This commit is contained in:
+8
-2
@@ -27,7 +27,9 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
TG_WS_PROXY_SECRET="" \
|
||||
TG_WS_PROXY_DC_IPS="2:149.154.167.220 4:149.154.167.220" \
|
||||
TG_WS_PROXY_CF_WORKER="" \
|
||||
TG_WS_PROXY_NO_SECURE=False
|
||||
TG_WS_PROXY_NO_SECURE=False \
|
||||
TG_WS_PROXY_PROXY_PROTOCOL=False \
|
||||
TG_WS_PROXY_FAKE_TLS_DOMAIN=""
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends tini ca-certificates \
|
||||
@@ -57,5 +59,9 @@ ENTRYPOINT ["/usr/bin/tini", "--", "/bin/sh", "-lc", "set -eu; args=\"\
|
||||
then args=\"$args --cfproxy-worker-domain ${TG_WS_PROXY_CF_WORKER}\"; fi; \
|
||||
if [ \"${TG_WS_PROXY_NO_SECURE}\" = \"True\" ]; \
|
||||
then args=\"$args --no-secure \"; fi; \
|
||||
if [ \"${TG_WS_PROXY_PROXY_PROTOCOL}\" = \"True\" ]; \
|
||||
then args=\"$args --proxy-protocol \"; fi; \
|
||||
if [ -n \"${TG_WS_PROXY_FAKE_TLS_DOMAIN}\" ]; \
|
||||
then args=\"$args --fake-tls-domain ${TG_WS_PROXY_FAKE_TLS_DOMAIN} \"; fi; \
|
||||
exec /opt/venv/bin/python -u proxy/tg_ws_proxy.py $args \"$@\"", "--"]
|
||||
CMD []
|
||||
CMD []
|
||||
|
||||
Reference in New Issue
Block a user