-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.example.toml
42 lines (34 loc) · 1.13 KB
/
config.example.toml
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
workers = 4 # 同时下载文件数
retry = 3 # 下载失败重试次数
[telegram]
token = "" # Bot Token
admins = [777000] # 你的 user_id
app_id = 123456 # Telegram API ID
app_hash = "0123456789abcdef0123456789abcdef" # Telegram API Hash
[telegram.proxy]
enable = false
url = "socks5://127.0.0.1:7890" # 代理地址
[log]
level = "DEBUG" # 日志等级
[temp]
base_path = "cache/" # 下载文件临时目录, 请不要在此目录下存放任何其他文件
cache_ttl = 30 # 临时文件保存时间, 单位: 秒
[db]
path = "data/data.db" # 数据库文件路径
[storage]
[storage.alist] # Alist
enable = true
base_path = "/telegram" # 保存路径
username = "admin" # 用户名
password = "password" # 密码
url = "https://alist.com" # Alist 地址
token_exp = 86400 # token 过期时间, 单位: 秒
[storage.local] # 本地磁盘
enable = true
base_path = "downloads/" # 保存路径
[storage.webdav] # WebDav
enable = true
base_path = "/telegram"
username = "admin"
password = "password"
url = "https://alist.com/dav"