feat(backend): RBAC admin roles + runtime logs service
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
# 所有配置项集中管理,避免散落在代码各处
|
||||
# =============================================================================
|
||||
|
||||
import os
|
||||
from typing import List
|
||||
|
||||
import redis.asyncio as aioredis
|
||||
@@ -72,6 +73,14 @@ class Settings(BaseSettings):
|
||||
# CORS 允许的源地址(逗号分隔的字符串)
|
||||
cors_origins: str = "http://localhost:5173,http://localhost:5174,http://localhost:5175"
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# 运行期日志目录(供"运行期日志"管理页面读取)
|
||||
# ----------------------------------------------------------------------
|
||||
# 后端运行期日志(JSON 格式,由 utils.logging_config.setup_logging 写入)
|
||||
# 所在目录。容器内默认 /app/logs,可通过环境变量 RUNTIME_LOG_DIR 覆盖;
|
||||
# 宿主机需将真实日志目录挂载到该路径(见 docker-compose.yml backend 卷)。
|
||||
RUNTIME_LOG_DIR: str = os.getenv("RUNTIME_LOG_DIR", "/app/logs")
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# AI 服务配置(Dify)
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user