Replies: 1 comment
-
|
PR: #342 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
现状 & 目标
一些用户会把把配置文件也用 git 管理,这样就算迁移和初始化都能直接应用配置生效,
但配置文件会遇到一些问题,目前
config.json内有些 secret keys 和 common settings 同时在一个文件里,这些 common settings 应该纳入版本控制,但 secret keys 不应该。
对于这种场景,本提案提出在
config.json的特定 token 配置处,除了支持直接写 token/password 明文,还支持使用环境变量引用写法,例如这项支持将保持最大的兼容性,仅新增解析功能,即使是对于 WebUI 的更新/保存也不会破坏配置安全性,即 WebUI 上也显示 token 为
${MIKAN_TOKEN}这么一个原始字符串,保存时也是这么一个原始字符串。与 v2.5 环境变量的对比
核心区别在于本提案依然保持
config.json是全量声明式配置, 环境变量并不是 AB 现在的配置方式,配置值仅仅是${MIKAN_TOKEN}这个声明。支持配置项
目前(v3.0)配置文件中需要支持的配置列举为
downloader.usernamedownloader.passwordrss_parser.tokennotification.tokennotification.chat_idproxy.usernameproxy.passwordBeta Was this translation helpful? Give feedback.
All reactions