forked from lxhao61/integrated-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
2_v2ray_config.json
56 lines (56 loc) · 1.23 KB
/
2_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
{
"log": {
"loglevel": "warning",
"error": "/var/log/xray/error.log", //若使用 V2Ray,此处目录名称 xray 改成 v2ray。
"access": "/var/log/xray/access.log" //若使用 V2Ray,此处目录名称 xray 改成 v2ray。
},
"inbounds": [
{
"listen": "/dev/shm/uds2007.sock", //Trojan+WebSocket 监听进程。若接收来自 Caddy 的转发,此监听进程修改为 @uds2007.sock。
"protocol": "trojan",
"settings": {
"clients": [
{
"password":"diy2007", //修改为自己密码
"email": "[email protected]"
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/9ALdGZ9k" //修改为自己的路径
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
"routing": {
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
]
},
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
]
}