-
Notifications
You must be signed in to change notification settings - Fork 164
/
config_server.json
105 lines (105 loc) · 3.14 KB
/
config_server.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"log": {
"access": "/var/log/xray/access.log",
"error": "/var/log/xray/error.log",
"loglevel": "warning",
"dnsLog": false
},
"dns": {
"servers": [
"https+local://1.1.1.1/dns-query"
]
},
"routing": {
"domainStrategy": "Asls",
"domainMatcher": "hybrid",
"rules": [
{
"type": "field",
"domain": [
"geosite:category-ads-all",
"geosite:cn",
"geosite:category-games@cn"
],
"outboundTag": "block"
},
{
"type": "field",
"ip": [
"geoip:cn",
"geoip:private"
],
"outboundTag": "block"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "chika",
"flow": "xtls-rprx-direct"
}
],
"decryption": "none",
"fallbacks": [
{
"alpn": "",
"path": "",
"dest": "/dev/shm/http.socket",
"xver": 2
},
{
"alpn": "h2",
"path": "",
"dest": "/dev/shm/h2.socket",
"xver": 2
}
]
},
"streamSettings": {
"network": "tcp",
"security": "xtls",
"xtlsSettings": {
"minVersion": "1.2",
"cipherSuites": "TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256:TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384:TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256",
"preferServerCipherSuites": true,
"alpn": [
"h2",
"http/1.1"
],
"certificates": [
{
"keyFile": "/etc/ssl/private/key.pem",
"certificateFile": "/etc/ssl/private/fullchain.pem",
"ocspStapling": 3600
}
],
"rejectUnknownSni": true
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv4"
},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
},
"tag": "block"
}
]
}