v2
Browse files- Dockerfile +3 -2
- entrypoint.sh +2 -2
- vols/nginx.conf +2 -2
- vols/v2config.json +4 -4
Dockerfile
CHANGED
|
@@ -14,7 +14,7 @@ COPY vols/v2-supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
| 14 |
COPY vols/nginx.conf /etc/nginx/nginx.conf
|
| 15 |
|
| 16 |
RUN mkdir /etc/v2ray /usr/local/v2ray
|
| 17 |
-
COPY /vols/v2config.json /etc/v2ray/
|
| 18 |
COPY entrypoint.sh /usr/local/v2ray/
|
| 19 |
|
| 20 |
# 感谢 fscarmen 大佬提供 Dockerfile 层优化方案
|
|
@@ -26,6 +26,7 @@ RUN wget -q -O /tmp/v2ray-linux-64.zip https://github.com/v2fly/v2ray-core/relea
|
|
| 26 |
apk del wget unzip && \
|
| 27 |
rm -rf /tmp/v2ray-linux-64.zip && \
|
| 28 |
rm -rf /var/cache/apk/* && \
|
| 29 |
-
rm -rf /tmp/*
|
|
|
|
| 30 |
|
| 31 |
ENTRYPOINT [ "/usr/local/v2ray/entrypoint.sh" ]
|
|
|
|
| 14 |
COPY vols/nginx.conf /etc/nginx/nginx.conf
|
| 15 |
|
| 16 |
RUN mkdir /etc/v2ray /usr/local/v2ray
|
| 17 |
+
COPY /vols/v2config.json /etc/v2ray/config.json
|
| 18 |
COPY entrypoint.sh /usr/local/v2ray/
|
| 19 |
|
| 20 |
# 感谢 fscarmen 大佬提供 Dockerfile 层优化方案
|
|
|
|
| 26 |
apk del wget unzip && \
|
| 27 |
rm -rf /tmp/v2ray-linux-64.zip && \
|
| 28 |
rm -rf /var/cache/apk/* && \
|
| 29 |
+
rm -rf /tmp/* && \
|
| 30 |
+
chmod -R 777 /var/log
|
| 31 |
|
| 32 |
ENTRYPOINT [ "/usr/local/v2ray/entrypoint.sh" ]
|
entrypoint.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
-
sed -i "s#UUID#$UUID#g;s#VMESS_WSPATH#$VMESS_WSPATH#g;s#VLESS_WSPATH#$VLESS_WSPATH#g" /etc/v2ray/config.json
|
| 4 |
-
sed -i "s#VMESS_WSPATH#$VMESS_WSPATH#g;s#VLESS_WSPATH#$VLESS_WSPATH#g" /etc/nginx/nginx.conf
|
| 5 |
# exec "$@"
|
| 6 |
|
| 7 |
# 请删掉下一行最前面的 # 号,同时将这行代码中的域名替换成 Replit 为你项目分配的域名。
|
|
|
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
+
#sed -i "s#UUID#$UUID#g;s#VMESS_WSPATH#$VMESS_WSPATH#g;s#VLESS_WSPATH#$VLESS_WSPATH#g" /etc/v2ray/config.json
|
| 4 |
+
#sed -i "s#VMESS_WSPATH#$VMESS_WSPATH#g;s#VLESS_WSPATH#$VLESS_WSPATH#g" /etc/nginx/nginx.conf
|
| 5 |
# exec "$@"
|
| 6 |
|
| 7 |
# 请删掉下一行最前面的 # 号,同时将这行代码中的域名替换成 Replit 为你项目分配的域名。
|
vols/nginx.conf
CHANGED
|
@@ -42,7 +42,7 @@ http {
|
|
| 42 |
index index.html index.htm;
|
| 43 |
}
|
| 44 |
|
| 45 |
-
location
|
| 46 |
proxy_redirect off;
|
| 47 |
proxy_pass http://127.0.0.1:10000;
|
| 48 |
proxy_http_version 1.1;
|
|
@@ -53,7 +53,7 @@ http {
|
|
| 53 |
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 54 |
}
|
| 55 |
|
| 56 |
-
location
|
| 57 |
proxy_redirect off;
|
| 58 |
proxy_pass http://127.0.0.1:20000;
|
| 59 |
proxy_http_version 1.1;
|
|
|
|
| 42 |
index index.html index.htm;
|
| 43 |
}
|
| 44 |
|
| 45 |
+
location /b-vms {
|
| 46 |
proxy_redirect off;
|
| 47 |
proxy_pass http://127.0.0.1:10000;
|
| 48 |
proxy_http_version 1.1;
|
|
|
|
| 53 |
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 54 |
}
|
| 55 |
|
| 56 |
+
location /b-vls {
|
| 57 |
proxy_redirect off;
|
| 58 |
proxy_pass http://127.0.0.1:20000;
|
| 59 |
proxy_http_version 1.1;
|
vols/v2config.json
CHANGED
|
@@ -10,14 +10,14 @@
|
|
| 10 |
"protocol": "vmess",
|
| 11 |
"settings": {
|
| 12 |
"clients": [{
|
| 13 |
-
"id": "
|
| 14 |
"alterId": 0
|
| 15 |
}]
|
| 16 |
},
|
| 17 |
"streamSettings": {
|
| 18 |
"network": "ws",
|
| 19 |
"wsSettings": {
|
| 20 |
-
"path": "
|
| 21 |
}
|
| 22 |
}
|
| 23 |
},
|
|
@@ -27,14 +27,14 @@
|
|
| 27 |
"protocol": "vless",
|
| 28 |
"settings": {
|
| 29 |
"clients": [{
|
| 30 |
-
"id": "
|
| 31 |
}],
|
| 32 |
"decryption": "none"
|
| 33 |
},
|
| 34 |
"streamSettings": {
|
| 35 |
"network": "ws",
|
| 36 |
"wsSettings": {
|
| 37 |
-
"path": "
|
| 38 |
}
|
| 39 |
}
|
| 40 |
}
|
|
|
|
| 10 |
"protocol": "vmess",
|
| 11 |
"settings": {
|
| 12 |
"clients": [{
|
| 13 |
+
"id": "737f27c8-377d-464a-b03a-aaa8f8d0eade",
|
| 14 |
"alterId": 0
|
| 15 |
}]
|
| 16 |
},
|
| 17 |
"streamSettings": {
|
| 18 |
"network": "ws",
|
| 19 |
"wsSettings": {
|
| 20 |
+
"path": "/b-vms"
|
| 21 |
}
|
| 22 |
}
|
| 23 |
},
|
|
|
|
| 27 |
"protocol": "vless",
|
| 28 |
"settings": {
|
| 29 |
"clients": [{
|
| 30 |
+
"id": "737f27c8-377d-464a-b03a-aaa8f8d0eade"
|
| 31 |
}],
|
| 32 |
"decryption": "none"
|
| 33 |
},
|
| 34 |
"streamSettings": {
|
| 35 |
"network": "ws",
|
| 36 |
"wsSettings": {
|
| 37 |
+
"path": "/b-vls"
|
| 38 |
}
|
| 39 |
}
|
| 40 |
}
|