feat: 增强 WebUI 配置,支持防爬虫和安全 Cookie 设置
This commit is contained in:
@@ -44,10 +44,9 @@ class MainSystem:
|
||||
|
||||
def _setup_webui_server(self):
|
||||
"""设置独立的 WebUI 服务器"""
|
||||
import os
|
||||
from src.config.config import global_config
|
||||
|
||||
webui_enabled = os.getenv("WEBUI_ENABLED", "false").lower() == "true"
|
||||
if not webui_enabled:
|
||||
if not global_config.webui.enabled:
|
||||
logger.info("WebUI 已禁用")
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user