更详细的 config 配置以及更完善的 README (#25)

* Add files via upload

* Add files via upload

* Add OpenWrt auto-start and shortcut script instructions, Optimize file link reference method.

* add more detailed instructions.

* Add files via upload
This commit is contained in:
Twilight
2025-02-24 17:32:53 +08:00
committed by GitHub
parent 28b4585dba
commit 418f9bd2bc
4 changed files with 93 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
#创建文件时,若需要保留中文注释,请务必确保本文件编码为 UTF-8 ,否则会无法读取。
workers = 4 # 同时下载文件数
retry = 3 # 下载失败重试次数
threads = 4 # 单个任务下载最大线程数
@@ -36,12 +37,12 @@ base_path = "./downloads/2"
[[storages]]
name = "MyAlist"
type = "alist"
enable = false
enable = false #记得启用
base_path = '/'
url = 'https://alist.com'
username = 'admin'
password = 'password'
token_exp = 86400
token_exp = 86400 # 86400--1天 604800--7天 1296000--15天 2592000--30天 15552000--180天
# alist 可直接使用 token 登录, 此时 username, password, token_exp 将被忽略
# 请自行在 alist 侧配置合理的 token 过期时间
# token = ""
@@ -61,17 +62,16 @@ password = 'password'
[[users]]
# telegram user id
id = 114514
# 将过滤模式设为黑名单
# 开启黑名单,开启后下方留空以使用所有存储,反之则为白名单,白名单请在下方输入允许的存储名
blacklist = true
# 存储过滤列表
# 将列表留空并开启黑名单模式以允许使用所有存储
# 将列表留空并开启黑名单模式以允许使用所有存储此处示例为黑名单模式用户114514 可使用所有存储
storages = []
[[users]]
id = 123456
blacklist = false
# 此时该用户只能使用 本机1
blacklist = false #开启白名单模式此时用户123456 仅可使用下方列表中的存储
# 此时该用户只能使用名为 本机1 的存储
storages = ["本机1"]
@@ -89,4 +89,4 @@ storages = ["本机1"]
# cache_ttl = 30
# [db]
# path = "data/data.db" # 数据库文件路径
# path = "data/data.db" # 数据库文件路径