forked from lxhao61/integrated-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
1_v2ray_config.json
58 lines (58 loc) · 1.29 KB
/
1_v2ray_config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"log": {
"loglevel": "warning",
"error": "/var/log/xray/error.log", //若使用 V2Ray,此处目录名称 xray 改成 v2ray。
"access": "/var/log/xray/access.log" //若使用 V2Ray,此处目录名称 xray 改成 v2ray。
},
"inbounds": [
{
"listen": "127.0.0.1", //只监听本机,避免本机外的机器探测到下面端口。
"port": 2009, //VMess+gRPC 监听端口
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "058e0bf3-dd56-11e9-aa37-5600024c1d6a", //修改为自己的 UUID
"email": "[email protected]"
}
]
},
"streamSettings": {
"network": "grpc",
"security": "none",
"grpcSettings": {
"serviceName": "VALdGZ9k" //修改为自己的 gRPC 服务名称
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
"routing": {
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
]
},
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
]
}