-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.json
More file actions
executable file
·114 lines (114 loc) · 2.25 KB
/
config.example.json
File metadata and controls
executable file
·114 lines (114 loc) · 2.25 KB
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
106
107
108
109
110
111
112
113
114
{
"log": {
"access": "/var/log/rustray/access.log",
"error": "/var/log/rustray/error.log",
"loglevel": "warning",
"dnsLog": true
},
"api": {
"tag": "api",
"listen": "127.0.0.1",
"port": 10085,
"services": [
"HandlerService",
"StatsService",
"LoggerService"
]
},
"dns": {
"servers": [
"https://8.8.8.8/dns-query",
"quic://dns.google",
"8.8.4.4",
"localhost"
],
"autoDetectSystemDns": true,
"fakedns": {
"ipPool": "198.18.0.0/16",
"poolSize": 65535
}
},
"inbounds": [
{
"tag": "socks-in",
"port": 1080,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true
},
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls", "quic"],
"metadataOnly": false
}
}
],
"outbounds": [
{
"tag": "proxy-flow-j",
"protocol": "flow-j",
"settings": {
"address": "your-server-ip",
"port": 443,
"uuid": "e8c89c74-2794-4d87-955a-e7c62d001234",
"fec": {
"enabled": true,
"dataShards": 10,
"parityShards": 3
},
"multiport": {
"enabled": true,
"range": "10000-20000"
}
},
"streamSettings": {
"network": "quic",
"security": "reality",
"realitySettings": {
"show": false,
"fingerprint": "chrome",
"serverName": "www.google.com",
"publicKey": "base64-encoded-public-key",
"shortId": "deadbeef"
}
}
},
{
"protocol": "freedom",
"tag": "direct",
"settings": {}
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"inboundTag": ["api"],
"outboundTag": "api"
},
{
"type": "field",
"outboundTag": "direct",
"domain": ["geosite:cn", "geosite:private"]
}
]
},
"isp": {
"activePreset": "mci",
"presets": [
{
"name": "mci",
"mtu": 1380,
"flowJInitialDelayMs": 50,
"edition": "2024"
},
{
"name": "mtn",
"mtu": 1420,
"edition": "2024"
}
]
}
}