forked from shing-yu/fanqie-downloader-api-v4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-example.json
90 lines (89 loc) · 2.38 KB
/
config-example.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
{
"comment": "这是一个示例配置文件, 请复制此文件并重命名为config.json, 然后修改为你自己的配置",
"wsgi": false,
"cors": false, "?cors": "是否启用跨域请求",
"cdn": false,
"webui": {
"enable": true,
"download_url": "https://example.com/"
}, "?webui": "webui的配置, download_url为你的下载地址",
"log": {
"level": "DEBUG",
"console_level": "INFO",
"filepath": "logs/api.log",
"maxSize": "20 MB",
"backupCount": 20
},
"server": {
"port": 5000,
"host": "0.0.0.0", "?host": "监听地址,如果使用ipv6,请改为‘::’",
"debug": false,
"thread": false,
"https": {
"enable": false,
"ssl_cert": "",
"ssl_key": "",
"force_https": false
}
},
"mysql": {
"host": "127.0.0.1",
"port": 3306,
"user": "root",
"password": "",
"database": "fdapiv4"
},
"administrator": {
"enable": false,
"password": "L147258963oOOi",
"totp": {
"enable": false,
"secret": ""
},
"enable_list_all_tasks": false, "?enable_list_all_book": "允许此请求可能导致程序负载过大,请谨慎开启"
},
"save_dir": "output",
"encoding": "utf-8",
"filename_format": "{title}_{book_id}.txt",
"speed_limit": 0.5, "?speed_limit": "下载速度限制, 单位为s/it, 最低为0.25",
"time_range": "false", "?time_range": "可用时间, 用-分隔, 例如 18-22 表示晚上6点到10点(北京时间),不限制请填‘false’",
"limiter": {
"enable": true,
"api": {
"per_minute": "15",
"per_hour": "200",
"per_day": "300"
},
"list": {
"per_minute": "20",
"per_hour": "200",
"per_day": "500"
},
"download": {
"per_minute": "10",
"per_hour": "100",
"per_day": "300"
}
},
"upload": {
"base_dir": "fdapiv4/output",
"cos": {
"comment": "腾讯云对象存储, 请参考 https://cloud.tencent.com/document/product/436/8629",
"enable": false,
"secret_id": "",
"secret_key": "",
"region": "ap-xxxxxxxx",
"bucket": "xxx-0000000000",
"scheme": "https",
"token": null
},
"ofb":{
"comment": "OneDrive for Business",
"enable": false,
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"tenant_id": "your_tenant_id",
"endpoint": "/Documents/"
}
}
}