Files
edgetunnel/configure.sh
2020-12-13 21:17:55 +08:00

31 lines
625 B
Bash

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
# Run V2Ray
/usr/bin/v2ray -config /etc/v2ray/config.json