[中] DEBUG模式默认为True #98
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题描述
backend/app/core/config.py 第20行,DEBUG 默认值为 True。生产环境部署时如果忘记设置环境变量,会暴露调试信息、开启热重载。
涉及文件
修复建议
将默认值改为 False,仅开发环境显式开启。
严重程度
中 - 安全配置问题