feat: add password-gated config pages

This commit is contained in:
jocayn
2026-06-13 16:57:43 +08:00
parent 43728ec30e
commit c9d3665399
6 changed files with 891 additions and 22 deletions
+12
View File
@@ -48,6 +48,18 @@ docker compose up -d --build
http://飞牛IP:3000
```
首次部署请先修改 `docker-compose.yml` 中的密码和密钥:
```yaml
ADMIN_PASSWORD: "你的管理员密码"
VIEWER_PASSWORD: "你的用户访问密码"
SESSION_SECRET: "一段随机字符串"
LINK_TOKEN_SECRET: "另一段随机字符串"
```
页面入口:
* 管理员控制台:`http://飞牛IP:3000/config`
* 用户只读配置页:`http://飞牛IP:3000/sub`
需要持久化的数据:
* `subs.json` - 订阅源配置,控制面板修改后会写入这里
* `out/` - 当前输出和历史配置