Files
mai-bot/template/template.env
陈曦 32a6d1a520 fix:修改webui默认配置暴露端口为127.0.0.1
将 WebUI 服务的默认监听地址从 0.0.0.0 修改为 127.0.0.1,以提升安全性,默认仅允许本地访问。同步调整了相关日志提示以及 template.env 中的注释说明,明确如何在需要时显式开启对外访问。
2025-12-14 16:40:37 +08:00

9 lines
344 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 麦麦主程序配置
HOST=127.0.0.1
PORT=8000
# WebUI 独立服务器配置
WEBUI_ENABLED=true
WEBUI_MODE=production # 模式: development(开发) 或 production(生产)
WEBUI_HOST=127.0.0.1 # WebUI 服务器监听地址默认仅本地访问设置为0.0.0.0可允许外部访问)
WEBUI_PORT=8001 # WebUI 服务器端口