-
Notifications
You must be signed in to change notification settings - Fork 188
/
Copy pathserver.json
52 lines (52 loc) · 915 Bytes
/
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
{
"AdminListen": "127.0.0.1:60000",
"DialTimeout": 15,
"UDPReadTimeout": 30,
"Log": ["server.log"],
//cipher config
"Cipher":{
"Key":"809240d3a021449f6e67aa73221d42df942a308a",
//AllowedUser
"User": "*,gsnova"
},
//Limit user 'abc' bandwidth to 256KB/s
"RateLimit":{
"abc": "256K",
"*":"-1"
},
"Mux":{
"MaxStreamWindow": "512K",
"StreamMinRefresh":"32K",
"StreamIdleTimeout":10,
"SessionIdleTimeout":300
},
"Server":[
{
"Listen":"tcp://:48100"
},
{
"Listen":"quic://:48100"
},
{
"Listen":"http://:48101"
},
{
"Listen":"kcp://:48101",
"KCParams":{
"Mode":"fast2"
}
},
{
"Listen":"tls://:48102",
"Key": "",
"Cert":""
///"Key":"/etc/letsencrypt/live/testdomain.tk/privkey.pem",
//"Cert":"/etc/letsencrypt/live/testdomain.tk/fullchain.pem"
},
{
"Listen":"http2://:48103",
"Key": "",
"Cert":""
}
]
}