fix:修改webui默认配置暴露端口为127.0.0.1
将 WebUI 服务的默认监听地址从 0.0.0.0 修改为 127.0.0.1,以提升安全性,默认仅允许本地访问。同步调整了相关日志提示以及 template.env 中的注释说明,明确如何在需要时显式开启对外访问。
This commit is contained in:
@@ -59,12 +59,12 @@ class MainSystem:
|
||||
|
||||
if webui_mode == "development":
|
||||
logger.info("📝 WebUI 开发模式已启用")
|
||||
logger.info("🌐 后端 API 将运行在 http://0.0.0.0:8001")
|
||||
logger.info("🌐 后端 API 将运行在配置的地址(默认 http://127.0.0.1:8001)")
|
||||
logger.info("💡 请手动启动前端开发服务器: cd MaiBot-Dashboard && bun dev")
|
||||
logger.info("💡 前端将运行在 http://localhost:7999")
|
||||
else:
|
||||
logger.info("✅ WebUI 生产模式已启用")
|
||||
logger.info("🌐 WebUI 将运行在 http://0.0.0.0:8001")
|
||||
logger.info("🌐 WebUI 将运行在配置的地址(默认 http://127.0.0.1:8001)")
|
||||
logger.info("💡 请确保已构建前端: cd MaiBot-Dashboard && bun run build")
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user