Files
hospital_performance/backend/.env.example
chenqi 4a46e7d2f5 fix(backend): 修正默认数据库用户名及调试模式配置
- 将默认数据库用户名从 your_user 改为 postgresql,明确用户名字段说明
- 修改 .env.example 中 DEBUG 默认为 True,方便本地调试
- 更新 deploy-docker-compose.sh 脚本中 DEBUG 默认值为 True,保持一致性
- 保持数据库连接字符串格式正确,确保环境变量配置一致
2026-02-28 17:53:30 +08:00

14 lines
438 B
Plaintext

# 环境变量配置
# 数据库配置 (PostgreSQL)
# 生产环境请修改为实际的数据库连接信息
# 格式: postgresql+asyncpg://用户名:密码@主机:端口/数据库名
# 注意: 用户名是 postgresql 不是 postgres
DATABASE_URL=postgresql+asyncpg://postgresql:your_password@your_host:15432/hospital_performance
# JWT 配置
SECRET_KEY=your-secret-key-change-in-production-min-32-characters
# 调试模式
DEBUG=True