fix(hub): default HUB_ALLOW_PUBLIC on to avoid cloud 403 forbidden

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-11 15:31:59 +08:00
parent 860ebef4a7
commit e26a67176c
3 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -23,8 +23,9 @@ HUB_DISABLED_IDS=
# true=允许 RFC1918 私网访问中控页面;false=仅 127.0.0.1(反代须指向 127.0.0.1:5100)
HUB_TRUST_LAN=true
# 云服务器用域名/HTTPS 反代访问中控时设为 true(否则公网可能看到 {"detail":"forbidden"})
# HUB_ALLOW_PUBLIC=true
# 默认 true(代码默认允许公网/反代访问中控,靠 HUB_PASSWORD 保护)
# 仅本机调试可关: HUB_ALLOW_PUBLIC=false
HUB_ALLOW_PUBLIC=true
# 中控 Web 登录(默认 admin / admin123;生产环境请在 .env 中修改)
HUB_USERNAME=admin