mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-06-07 08:31:02 +08:00
chore: update configuration for user storage filtering and add base path for file saving
This commit is contained in:
@@ -24,6 +24,7 @@ name = "本机1"
|
|||||||
type = "local"
|
type = "local"
|
||||||
# 启用存储
|
# 启用存储
|
||||||
enable = true
|
enable = true
|
||||||
|
# 文件保存根路径
|
||||||
base_path = "./downloads"
|
base_path = "./downloads"
|
||||||
|
|
||||||
[[storages]]
|
[[storages]]
|
||||||
@@ -49,8 +50,8 @@ token_exp = 86400
|
|||||||
[[storages]]
|
[[storages]]
|
||||||
name = "MyWebdav"
|
name = "MyWebdav"
|
||||||
type = "webdav"
|
type = "webdav"
|
||||||
base_path = '/path/telegram'
|
|
||||||
enable = false
|
enable = false
|
||||||
|
base_path = '/path/telegram'
|
||||||
url = 'https://example.com/dav'
|
url = 'https://example.com/dav'
|
||||||
username = 'username'
|
username = 'username'
|
||||||
password = 'password'
|
password = 'password'
|
||||||
@@ -58,20 +59,25 @@ password = 'password'
|
|||||||
|
|
||||||
# 用户列表
|
# 用户列表
|
||||||
[[users]]
|
[[users]]
|
||||||
# user id
|
# telegram user id
|
||||||
id = 123456
|
|
||||||
# 存储名称过滤列表
|
|
||||||
storages = ["本机1"]
|
|
||||||
# 开启黑名单模式, 过滤列表中的存储将无法使用, 默认为白名单模式
|
|
||||||
blacklist = false
|
|
||||||
|
|
||||||
[[users]]
|
|
||||||
id = 114514
|
id = 114514
|
||||||
|
# 将过滤模式设为黑名单
|
||||||
|
blacklist = true
|
||||||
|
# 存储过滤列表
|
||||||
# 将列表留空并开启黑名单模式以允许使用所有存储
|
# 将列表留空并开启黑名单模式以允许使用所有存储
|
||||||
storages = []
|
storages = []
|
||||||
blacklist = true
|
|
||||||
|
|
||||||
|
|
||||||
|
[[users]]
|
||||||
|
id = 123456
|
||||||
|
blacklist = false
|
||||||
|
# 此时该用户只能使用 本机1
|
||||||
|
storages = ["本机1"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# 其他配置
|
||||||
|
|
||||||
# [log]
|
# [log]
|
||||||
# # 日志等级
|
# # 日志等级
|
||||||
# level = "DEBUG"
|
# level = "DEBUG"
|
||||||
|
|||||||
Reference in New Issue
Block a user