Skip to content

Commit f4b050f

Browse files
authored
Create xray_xtls.json
1 parent b505bba commit f4b050f

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

Files/xray/xray_xtls.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"log": {
3+
"access": "/var/log/xray/access-xtls.log",
4+
"error": "/var/log/xray/error-xtls.log",
5+
"loglevel": "warning"
6+
},
7+
"inbounds": [
8+
{
9+
"port": 443,
10+
"protocol": "vless",
11+
"settings": {
12+
"clients": [],
13+
"decryption": "none",
14+
"fallbacks": [
15+
{
16+
"dest": 60000,
17+
"alpn": "",
18+
"xver": 1
19+
},
20+
{
21+
"dest": 60001,
22+
"alpn": "h2",
23+
"xver": 1
24+
}
25+
]
26+
},
27+
"streamSettings": {
28+
"network": "tcp",
29+
"security": "xtls",
30+
"xtlsSettings": {
31+
"minVersion": "1.2",
32+
"certificates": [
33+
{
34+
"certificateFile": "/metavpn/xray/xray.crt",
35+
"keyFile": "/metavpn/xray/xray.key"
36+
},
37+
{
38+
"certificateFile": "/usr/local/etc/xray/self_signed_cert.pem",
39+
"keyFile": "/usr/local/etc/xray/self_signed_key.pem"
40+
}
41+
]
42+
}
43+
},
44+
"sniffing": {
45+
"enabled": true,
46+
"destOverride": [
47+
"http",
48+
"tls"
49+
]
50+
}
51+
}
52+
],
53+
"outbounds": [
54+
{
55+
"protocol": "freedom"
56+
},
57+
{
58+
"protocol": "blackhole",
59+
"tag": "block"
60+
}
61+
],
62+
"routing": {
63+
"domainStrategy": "AsIs",
64+
"rules": [
65+
{
66+
"type": "field",
67+
"outboundTag": "block",
68+
"protocol": [
69+
"bittorrent"
70+
]
71+
}
72+
]
73+
}
74+
}

0 commit comments

Comments
 (0)