mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-24 00:48:39 +08:00
chore: update
This commit is contained in:
30
Dockerfile
30
Dockerfile
@@ -7,36 +7,12 @@ FROM v2fly/v2fly-core:latest
|
|||||||
|
|
||||||
# CMD /configure.sh
|
# CMD /configure.sh
|
||||||
|
|
||||||
|
ADD v2rayconf.sh .
|
||||||
|
|
||||||
ARG UUID
|
ARG UUID
|
||||||
ENV UUID=$UUID
|
ENV UUID=$UUID
|
||||||
|
|
||||||
RUN touch /etc/v2ray/config.json
|
RUN touch /etc/v2ray/config.json
|
||||||
RUN cat > /etc/v2ray/config.json <<'EOF' \
|
RUN v2rayconf.sh
|
||||||
{ \
|
|
||||||
"inbounds": [\
|
|
||||||
{\
|
|
||||||
"port": $PORT,\
|
|
||||||
"protocol": "vmess",\
|
|
||||||
"settings": {\
|
|
||||||
"clients": [\
|
|
||||||
{\
|
|
||||||
"id": "$UUID",\
|
|
||||||
"alterId": 64\
|
|
||||||
}\
|
|
||||||
],\
|
|
||||||
"disableInsecureEncryption": true\
|
|
||||||
},\
|
|
||||||
"streamSettings": {\
|
|
||||||
"network": "ws"\
|
|
||||||
}\
|
|
||||||
}\
|
|
||||||
],\
|
|
||||||
"outbounds": [\
|
|
||||||
{\
|
|
||||||
"protocol": "freedom"\
|
|
||||||
}\
|
|
||||||
]\
|
|
||||||
}\
|
|
||||||
EOF
|
|
||||||
|
|
||||||
CMD [ "/usr/bin/v2ray", "-config", "/etc/v2ray/config.json" ]
|
CMD [ "/usr/bin/v2ray", "-config", "/etc/v2ray/config.json" ]
|
||||||
|
|||||||
27
v2rayconf.sh
Normal file
27
v2rayconf.sh
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
cat << EOF > /etc/v2ray/config.json
|
||||||
|
{
|
||||||
|
"inbounds": [
|
||||||
|
{
|
||||||
|
"port": $PORT,
|
||||||
|
"protocol": "vmess",
|
||||||
|
"settings": {
|
||||||
|
"clients": [
|
||||||
|
{
|
||||||
|
"id": "$UUID",
|
||||||
|
"alterId": 64
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"disableInsecureEncryption": true
|
||||||
|
},
|
||||||
|
"streamSettings": {
|
||||||
|
"network": "ws"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outbounds": [
|
||||||
|
{
|
||||||
|
"protocol": "freedom"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
EOF
|
||||||
Reference in New Issue
Block a user