feat: add .env file for deployment configuration

This commit is contained in:
2026-02-28 17:27:07 +08:00
parent 58fa45be8e
commit b5f8a5f20c
2 changed files with 11 additions and 1 deletions

2
.gitignore vendored
View File

@@ -56,7 +56,7 @@ logs/
backend/logs/
# Environment
.env
# .env # 已注释,允许提交
.env.local
# OS

10
backend/.env Normal file
View File

@@ -0,0 +1,10 @@
# 环境变量配置
# 数据库配置 (PostgreSQL)
DATABASE_URL=postgresql+asyncpg://postgresql:Jchl1528@192.168.110.252:15432/hospital_performance
# JWT 配置
SECRET_KEY=test-secret-key-for-development-only-min-32-chars
# 调试模式
DEBUG=True