Skip to content

Commit a076a06

Browse files
committed
Optimize Script
1 parent 43f3144 commit a076a06

8 files changed

Lines changed: 131 additions & 85 deletions

File tree

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
mtg
2-
mtproto-proxy
1+
bin/
2+
pid/
33
proxy-multi.conf
44
proxy-secret
55
build
6-
pid
7-
.idea
6+
.idea
7+
config

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ curl -fsSL -o mtproxy.sh https://github.com/ellermister/mtproxy/raw/master/mtpro
3939
bash 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

README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ curl -fsSL -o mtproxy.sh https://github.com/ellermister/mtproxy/raw/master/mtpro
3434
bash 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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
secret="4451023506896290666356006a67ce93"
33
port=8443
4-
web_port=8888
4+
statport=8888
55
domain="cloudflare.com"
6-
proxy_tag=""
6+
adtag=""
77
provider=1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)