mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
Update default config for light usage
This commit is contained in:
parent
4f85f04161
commit
13a9ff45d4
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user