docker 搭建 Telegram Messenger MTP

2019/04/20 22:53
阅读数 350

docker hub官方镜像地址如下:

https://hub.docker.com/r/telegrammessenger/proxy

 

拉取镜像

sudo docker pull telegrammessenger/proxy

 

创建容器

sudo docker run -d \
        -p 443:443 \
        --name=mtproto-proxy \
        --restart=always \
        -v proxy-config:/data \
        telegrammessenger/proxy:latest

 

查看docker日志,获取具体信息

sudo docker logs mtproto-proxy
[+] Using the explicitly passed secret: '00baadf00d15abad1deaa515baadcafe'.
[+] Saving it to /data/secret.
[*] Final configuration:
[*]   Secret 1: 00baadf00d15abad1deaa515baadcafe
[*]   tg:// link for secret 1 auto configuration: : tg://proxy?server=3.14.15.92&port=443&secret=00baadf00d15abad1deaa515baadcafe
[*]   t.me link for secret 1: tg://proxy?server=3.14.15.92&port=443&secret=00baadf00d15abad1deaa515baadcafe
[*]   Tag: no tag
[*]   External IP: 3.14.15.92
[*]   Make sure to fix the links in case you run the proxy on a different port.

 

自定义秘钥

#自定义单个秘钥
sudo
docker run \ -d \ -p443:443 \ -v proxy-config:/data \ -e SECRET=00baadf00d15abad1deaa51sbaadcafe \ telegrammessenger/proxy:latest
#自定义多个秘钥,秘钥以逗号分隔
sudo docker run \
-d \ -p443:443 \ -v proxy-config:/data \ -e SECRET=935ddceb2f6bbbb78363b224099f75c8,2084c7e58d8213296a3206da70356c81 \ telegrammessenger/proxy:latest

 

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部