Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
config/*
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ FROM alpine:3.6
LABEL maintainer="Alex Doe <alex@doe.sh>" \
description="Telegram Messenger MTProto zero-configuration proxy server."

ENV PORT=443

RUN apk add --no-cache curl \
&& ln -s /usr/lib/libcrypto.so.41 /usr/lib/libcrypto.so.1.0.0
# alpine:3.7 will need symlink to libcrypto.so.42
Expand All @@ -31,13 +33,12 @@ COPY --from=0 /mtproxy/sources/objs/bin/mtproto-proxy .
COPY docker-entrypoint.sh /

VOLUME /data
EXPOSE 2398 443
EXPOSE 2398
EXPOSE ${PORT}

ENTRYPOINT ["/docker-entrypoint.sh"]
CMD [ \

CMD [ \
"--port", "2398", \
"--http-ports", "443", \
"--slaves", "2", \
"--max-special-connections", "60000", \
"--allow-skip-dh" \
Expand Down
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ echo '[+] Starting proxy...'
sleep 1

# exec /mtproxy/mtproto-proxy -p 2398 -H 443 -M "$WORKERS" -C 60000 --aes-pwd /etc/telegram/hello-explorers-how-are-you-doing -u root $CONFIG --allow-skip-dh --nat-info "$INTERNAL_IP:$IP" $SECRET_CMD $TAG_CMD
exec /mtproxy/mtproto-proxy "$@" --aes-pwd ${REMOTE_SECRET} --user root ${REMOTE_CONFIG} --nat-info "$INTERNAL_IP:$EXTERNAL_IP" ${SECRET_CMD} ${TAG_CMD}
exec /mtproxy/mtproto-proxy "$@" --http-ports ${PORT} --aes-pwd ${REMOTE_SECRET} --user root ${REMOTE_CONFIG} --nat-info "$INTERNAL_IP:$EXTERNAL_IP" ${SECRET_CMD} ${TAG_CMD}