增加密码

This commit is contained in:
dekun
2026-05-22 11:44:34 +08:00
parent 661305c26a
commit cd129b6a25
8 changed files with 704 additions and 141 deletions
+9
View File
@@ -20,6 +20,15 @@ HUB_DISABLED_IDS=1
# true=允许 RFC1918 私网访问中控页面;false=仅 127.0.0.1
HUB_TRUST_LAN=true
# 中控 Web 登录密码(非空即启用;反代到公网时务必设置)
# HUB_PASSWORD=your-strong-password-here
# 会话签名密钥(建议单独随机串;未设则回退为 HUB_PASSWORD
# HUB_SESSION_SECRET=another-long-random-string
# HTTPS 反代时设为 trueCookie 仅通过加密连接传输
# HUB_COOKIE_SECURE=true
# 登录保持天数(默认 7
# HUB_SESSION_DAYS=7
# 浏览器打开的复盘/实例链接:把 127.0.0.1 换成 Ubuntu 内网 IP 或域名(中控本机调 API 仍用 127.0.0.1
# 例:用手机/另一台电脑访问中控时必填,否则「交易复盘」会指向你自己电脑的 localhost
# HUB_PUBLIC_ORIGIN=http://192.168.1.100