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.24 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": 2006, //trojan+h2c监听端口
"protocol": "trojan",
"settings": {
"clients": [
{
"password":"diy2006", //修改为自己密码
"email": "[email protected]"
}
]
},
"streamSettings": {
"network": "h2",
"security": "none",
"httpSettings": {
"path": "/teuW56Es" //修改为自己的path
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
"routing": {
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
]
},
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
]
}