这边选择的是直接用docker一把梭,操作简单,不需要维护,可以多端口多用户
安装dokcer可以参考这里👉安装docker
docker安装完毕后拉取镜像
docker pull telegrammessenger/proxy
镜像拉取完毕以后启动容器
docker run -d -p443:443 --name=mtproto-proxy --restart=always -v proxy-config:/data telegrammessenger/proxy
启动完毕后查看节点信息
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.
得到如上反馈说明已经搭建成功,复制 tg://
开头的链接到tg中打开就可以链接了。