部署TG代理

2024-04-13 Views 教程139字1 min read
featureimg
  1. 更新组件

apt-get update

  1. 安装swap

wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh

  1. 开启bbr
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
lsmod | grep bbr
  1. 安装docker

wget -qO- get.docker.com | bash
systemctl enable docker # 设置开机自动启动

  1. 配置docker-compose.yml文件
version: "3"
services:
    mtproxy:
        container_name: mtproxy
        restart: always
        environment:
            - domain=cloudflare.com
            - secret=63c45ae7b9ad7f7af2432078bf7d3ed7      
            - ip_white_list=OFF
            - provider=2
        ports:
            - 8080:80
            - 8443:443
        image: ellermister/mtproxy

项目地址:https://hub.docker.com/r/ellermister/mtproxy

32位16进制随机数,生成地址:https://www.bejson.com/math/hex_gen/

EOF