25 lines
877 B
Bash
25 lines
877 B
Bash
# 应用配置
|
||
APP_PORT=3000
|
||
NODE_ENV=development
|
||
|
||
# 持久化开关:true 时启用 PostgreSQL(TypeORM)持久化,否则各模块使用内存实现
|
||
# (内存实现无需数据库,供测试与本地快速启动)。
|
||
DB_ENABLED=false
|
||
|
||
# 认证(JWT):生产环境必须设置高强度 JWT_SECRET;未设置时回退到仅供本地开发的默认值。
|
||
JWT_SECRET=college-ai-center-dev-secret-change-me
|
||
JWT_EXPIRES_IN_SECONDS=7200
|
||
|
||
# 跨域:前端联调来源;留空则放开(开发用)。生产应设为具体来源。
|
||
# CORS_ORIGIN=http://localhost:3001
|
||
|
||
# PostgreSQL 数据库连接(仅 DB_ENABLED=true 时使用)
|
||
DB_HOST=localhost
|
||
DB_PORT=5432
|
||
DB_USERNAME=postgres
|
||
DB_PASSWORD=postgres
|
||
DB_DATABASE=college_ai_center
|
||
# 是否自动同步数据库结构(仅开发环境使用,生产环境请使用迁移)
|
||
DB_SYNCHRONIZE=false
|
||
DB_LOGGING=false
|