1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

Update default config for light usage

This commit is contained in:
v2ray 2016-02-18 10:30:00 +01:00
parent 4f85f04161
commit 13a9ff45d4
4 changed files with 8 additions and 61 deletions

View File

@ -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"
}
]
}
}
}

View File

@ -17,11 +17,11 @@
"vnext": [ "vnext": [
{ {
"address": "195.154.64.131", "address": "195.154.64.131",
"port": 17173, "port": 38291,
"users": [ "users": [
{ {
"id": "1ad52bdc-16d1-41a5-811d-f5c0c76d677b", "id": "8833948b-5861-4a0f-a1d6-83c5606881ff",
"alterId": 1024 "alterId": 64
} }
] ]
} }

View File

@ -1,5 +1,5 @@
{ {
"port": 17173, "port": 38291,
"log" : { "log" : {
"access": "/var/log/v2ray/access.log", "access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log", "error": "/var/log/v2ray/error.log",
@ -10,9 +10,9 @@
"settings": { "settings": {
"clients": [ "clients": [
{ {
"id": "1ad52bdc-16d1-41a5-811d-f5c0c76d677b", "id": "8833948b-5861-4a0f-a1d6-83c5606881ff",
"level": 1, "level": 1,
"alterId": 1024 "alterId": 64
} }
] ]
} }

View File

@ -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" cp "/tmp/v2ray/v2ray-${VER}-linux-${VDIS}/vpoint_vmess_freedom.json" "/etc/v2ray/config.json"
let PORT=$RANDOM+10000 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) 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 "PORT:${PORT}"
echo "UUID:${UUID}" echo "UUID:${UUID}"