From 13a9ff45d4be19620cfab6e0e02c246d8202ef10 Mon Sep 17 00:00:00 2001 From: v2ray Date: Thu, 18 Feb 2016 10:30:00 +0100 Subject: [PATCH] Update default config for light usage --- release/config/v2ray_official.json | 53 ------------------------ release/config/vpoint_socks_vmess.json | 6 +-- release/config/vpoint_vmess_freedom.json | 6 +-- release/install-release.sh | 4 +- 4 files changed, 8 insertions(+), 61 deletions(-) delete mode 100644 release/config/v2ray_official.json diff --git a/release/config/v2ray_official.json b/release/config/v2ray_official.json deleted file mode 100644 index b20ee5ed..00000000 --- a/release/config/v2ray_official.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "port": 17173, - "log" : { - "access": "access.log" - }, - "inbound": { - "protocol": "vmess", - "settings": { - "clients": [ - { - "id": "1ad52bdc-16d1-41a5-811d-f5c0c76d677b", - "alterId": 1024 - } - ] - } - }, - "outbound": { - "protocol": "blackhole", - "settings": {} - }, - "outboundDetour": [ - { - "protocol": "freedom", - "settings": {}, - "tag": "pass" - } - ], - "routing": { - "strategy": "rules", - "settings": { - "rules": [ - { - "type": "field", - "port": 80, - "network": "tcp", - "outboundTag": "pass" - }, - { - "type": "field", - "port": 443, - "network": "tcp", - "outboundTag": "pass" - }, - { - "type": "field", - "port": 53, - "network": "tcp,udp", - "outboundTag": "pass" - } - ] - } - } -} diff --git a/release/config/vpoint_socks_vmess.json b/release/config/vpoint_socks_vmess.json index 18a682d7..34e3c9de 100644 --- a/release/config/vpoint_socks_vmess.json +++ b/release/config/vpoint_socks_vmess.json @@ -17,11 +17,11 @@ "vnext": [ { "address": "195.154.64.131", - "port": 17173, + "port": 38291, "users": [ { - "id": "1ad52bdc-16d1-41a5-811d-f5c0c76d677b", - "alterId": 1024 + "id": "8833948b-5861-4a0f-a1d6-83c5606881ff", + "alterId": 64 } ] } diff --git a/release/config/vpoint_vmess_freedom.json b/release/config/vpoint_vmess_freedom.json index 08ea73d2..2a18713d 100644 --- a/release/config/vpoint_vmess_freedom.json +++ b/release/config/vpoint_vmess_freedom.json @@ -1,5 +1,5 @@ { - "port": 17173, + "port": 38291, "log" : { "access": "/var/log/v2ray/access.log", "error": "/var/log/v2ray/error.log", @@ -10,9 +10,9 @@ "settings": { "clients": [ { - "id": "1ad52bdc-16d1-41a5-811d-f5c0c76d677b", + "id": "8833948b-5861-4a0f-a1d6-83c5606881ff", "level": 1, - "alterId": 1024 + "alterId": 64 } ] } diff --git a/release/install-release.sh b/release/install-release.sh index c1141078..7aa81697 100755 --- a/release/install-release.sh +++ b/release/install-release.sh @@ -97,10 +97,10 @@ if [ ! -f "/etc/v2ray/config.json" ]; then cp "/tmp/v2ray/v2ray-${VER}-linux-${VDIS}/vpoint_vmess_freedom.json" "/etc/v2ray/config.json" let PORT=$RANDOM+10000 - sed -i "s/37192/${PORT}/g" "/etc/v2ray/config.json" + sed -i "s/38291/${PORT}/g" "/etc/v2ray/config.json" UUID=$(cat /proc/sys/kernel/random/uuid) - sed -i "s/3b129dec-72a3-4d28-aeee-028a0fe86e22/${UUID}/g" "/etc/v2ray/config.json" + sed -i "s/8833948b-5861-4a0f-a1d6-83c5606881ff/${UUID}/g" "/etc/v2ray/config.json" echo "PORT:${PORT}" echo "UUID:${UUID}"