-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_template.json
67 lines (67 loc) · 2.87 KB
/
config_template.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
// PLEASE REMOVE ALL COMMENTS FROM THE REAL CONFIGURATION FILE
{
// This is the settings for the sync sub-server
"sync": {
// Optional, this secret key is used to sign the token. Please keep it secret.
// If not provided, it will be generated and written to the config file.
"secretKey": "secret",
// Optional, if this is set, user will be required to use this key to register new accounts
"registerKey": "registerKey"
},
// This is the settings for the api sub-server
"api": {
// Optional, if it is set, the users will need the same key to access the server
// default: ""
"accessKey": "exampleKey",
"driver": {
// Optional, the ids in the list will be excluded
"exclude": [],
// Optional, only the ids in the list will be included
// "include" have higher precedence than "exclude"
"include": [],
// Optional, only active drivers will use the proxy
"proxies": [],
// Optional, config that applied to specific driver
// the key will be the driver's id and the value will pass to the driver directly
"config": {
// Optional, the configuration of active drivers
"exampleActiveDriverID": {
// Optional, the sql backend to use
// Default: sqlite3
"sql": "sqlite3",
// Optional, the parameters of the sql backend
// Default: ../data/{driverId}.sqlite3
"parameters": "db=id.sqlite3"
}
},
// Optional, the server can also be used as a CMS which is fully independent
"CMS": {
// Optional, the main switch to turn on the CMS
// Default: false
"enabled": false,
// Optional, the id of the driver it must be unique
// Default: "SC"
"id": "SC",
// Optional, the access key for the admin interface
// Default: ""
"accessKey": "exampleKey",
// Optional, Allow only the local ip address
// Default: true
"allowOnlyLocal": true,
// Optional, the sql backend to use
// Default: sqlite3
"sql": "sqlite3",
// Optional, the parameters of the sql backend
// Default: ../data/{id}.sqlite3
"parameters": "db=id.sqlite3"
}
},
"image": {
// Optional, proxy that only used when fetching images
"proxy": "sock5://example.com",
// Optional, set the interval for clearing image caches
// Valid units: "m"(minutes), "h"(hours), "d"(days)
"clearCaches": "1d"
}
}
}