forked from datawhale/whale-town-end
36 lines
817 B
Plaintext
36 lines
817 B
Plaintext
# 生产环境配置模板
|
|
# 复制此文件为 .env.production 并填入实际值
|
|
|
|
# 数据库配置
|
|
DB_HOST=localhost
|
|
DB_PORT=3306
|
|
DB_USERNAME=your_db_username
|
|
DB_PASSWORD=your_db_password
|
|
DB_NAME=your_db_name
|
|
|
|
# 应用配置
|
|
NODE_ENV=production
|
|
PORT=3000
|
|
|
|
# JWT 配置(如果有的话)
|
|
JWT_SECRET=your_jwt_secret_key_here_at_least_32_characters
|
|
JWT_EXPIRES_IN=7d
|
|
|
|
# Redis 配置(用于验证码存储)
|
|
# 生产环境使用真实Redis服务
|
|
USE_FILE_REDIS=false
|
|
REDIS_HOST=your_redis_host
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=your_redis_password
|
|
REDIS_DB=0
|
|
|
|
# 邮件服务配置
|
|
EMAIL_HOST=smtp.gmail.com
|
|
EMAIL_PORT=587
|
|
EMAIL_SECURE=false
|
|
EMAIL_USER=your_email@gmail.com
|
|
EMAIL_PASS=your_app_password
|
|
EMAIL_FROM="Whale Town Game" <noreply@whaletown.com>
|
|
|
|
# 其他配置
|
|
# 根据项目需要添加其他环境变量 |