forked from keaituzhe/SSRSpeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
94 lines (92 loc) · 1.96 KB
/
config.py
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
#coding:utf-8
config = {
"VERSION":"2.4.10",
"WEB_API_VERSION":"0.4.3",
"localAddress":"127.0.0.1",
"localPort":1087,
"excludeRemarks":[
"剩余流量",
"到期时间",
"过期时间"
],
"web":{
"listen":"127.0.0.1",
"port":10870,
"token":""
},
"exportResult":{
"hideMaxSpeed":True,
"uploadResult":False,
"font":"./resources/fonts/SourceHanSansCN-Medium.otf",
"colors":[
{
"name":"origin",
"colors":{
"0.064":[128,255,0],
"0.512":[255,255,0],
"4.0":[255,128,192],
"16.0":[255,0,0]
}
},
{
"name":"chunxiaoyi",
"colors":{
"0.064":[102,255,102],
"0.512":[255,255,102],
"4.0":[255,178,102],
"16.0":[255,102,102],
"24.0":[226,140,255],
"32.0":[102,204,255],
"40.0":[102,102,255]
}
},
{
"name":"chunxiaoyi2",
"colors":{
"0.064":[153,255,153],
"1.0":[102,255,102],
"4.0":[255,228,191],
"8.0":[255,191,102],
"16.0":[255,140,140],
"24.0":[255,63,63],
"32.0":[255,0,0],
"40.0":[165,0,0]
}
}
]
},
"uploadResult":{
"apiToken":"",
"server":"",
"remark":"Example Remark."
},
"speedtestsocket":{
"maxThread":4, #Thread count
"buffer":4096, #Buffer size,bytes
"skipRuleMatch":False,
"rules":[
{
"mode":"match_isp", #match_isp or match_location
"ISP":"Microsoft Corporation",
"tag":"Google"
},
{
"mode":"match_isp",
"ISP":"Google LLC",
"tag":"Default"
}
],
"downloadLinks":[
{
"link":"https://download.microsoft.com/download/0/A/F/0AFB5316-3062-494A-AB78-7FB0D4461357/7601.17514.101119-1850_Update_Sp_Wave1-GRMSP1.1_DVD.iso",
"fileSize":1900, #File size,MBytes
"tag":"Default"
},
{
"link":"https://dl.google.com/dl/android/studio/install/3.4.1.0/android-studio-ide-183.5522156-windows.exe",
"fileSize":971, #File size,MBytes
"tag":"Google"
}
]
}
}