forked from datawhale/whale-town-end
config:更新环境配置和忽略文件
- 在生产环境配置示例中添加邮件服务配置 - 在生产环境配置示例中添加Redis配置 - 更新.gitignore忽略Redis数据文件和日志文件
This commit is contained in:
@@ -16,5 +16,21 @@ PORT=3000
|
|||||||
JWT_SECRET=your_jwt_secret_key_here_at_least_32_characters
|
JWT_SECRET=your_jwt_secret_key_here_at_least_32_characters
|
||||||
JWT_EXPIRES_IN=7d
|
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>
|
||||||
|
|
||||||
# 其他配置
|
# 其他配置
|
||||||
# 根据项目需要添加其他环境变量
|
# 根据项目需要添加其他环境变量
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -41,3 +41,6 @@ coverage/
|
|||||||
# 临时文件
|
# 临时文件
|
||||||
*.tmp
|
*.tmp
|
||||||
.cache/
|
.cache/
|
||||||
|
|
||||||
|
# Redis数据文件(本地开发用)
|
||||||
|
redis-data/
|
||||||
|
|||||||
Reference in New Issue
Block a user