File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- mtg
2- mtproto-proxy
1+ bin /
2+ pid /
33proxy-multi.conf
44proxy-secret
55build
6- pid
7- .idea
6+ .idea
7+ config
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ RUN set -ex \
1313 && cd $WORKDIR \
1414 && cp src/* /usr/share/nginx/html \
1515 && rm -rf .git \
16- && cp mtproxy- entrypoint.sh /docker-entrypoint.d/40-mtproxy-start.sh \
16+ && cp entrypoint.sh /docker-entrypoint.d/40-mtproxy-start.sh \
1717 && chmod +x /docker-entrypoint.d/40-mtproxy-start.sh \
1818 && cp -f nginx/default.conf /etc/nginx/conf.d/default.conf \
1919 && cp -f nginx/ip_white.conf /etc/nginx/ip_white.conf \
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ curl -fsSL -o mtproxy.sh https://github.com/ellermister/mtproxy/raw/master/mtpro
3939bash mtproxy.sh
4040```
4141
42- ![ mtproxy.sh] ( https://raw.githubusercontent.com/ellermister/mtproxy/master/mtproxy .jpg )
42+ ![ mtproxy.sh] ( https://raw.githubusercontent.com/ellermister/mtproxy/master/preview .jpg )
4343
4444### 使用 Docker | 白名单 MTProxy Docker 镜像
4545
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ curl -fsSL -o mtproxy.sh https://github.com/ellermister/mtproxy/raw/master/mtpro
3434bash mtproxy.sh
3535```
3636
37- ![ mtproxy.sh] ( https://raw.githubusercontent.com/ellermister/mtproxy/master/mtproxy .jpg )
37+ ![ mtproxy.sh] ( https://raw.githubusercontent.com/ellermister/mtproxy/master/preview .jpg )
3838
3939### Docker | Whitelist MTProxy Docker Image
4040
Original file line number Diff line number Diff line change 11#! /bin/bash
22secret=" 4451023506896290666356006a67ce93"
33port=8443
4- web_port =8888
4+ statport =8888
55domain=" cloudflare.com"
6- proxy_tag =" "
6+ adtag =" "
77provider=1
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ set_config(){
1919 sed -i ' s/secret="[0-9A-Za-z]*"/secret="' $secret ' "/' $mtp_config
2020 fi
2121 if [ " $tag " ] && [[ " $tag " =~ ^[A-Za-z0-9]{32}$ ]]; then
22- sed -i ' s/proxy_tag ="[0-9A-Za-z]*"/proxy_tag ="' $tag ' "/' $mtp_config
22+ sed -i ' s/adtag ="[0-9A-Za-z]*"/adtag ="' $tag ' "/' $mtp_config
2323 fi
2424 if [ " $domain " ]; then
2525 sed -i ' s/domain="[0-9A-z\.\-]*"/domain="' $domain ' "/' $mtp_config
You can’t perform that action at this time.
0 commit comments