diff --git a/.env.production.example b/.env.production.example index b88f43c..80d0757 100644 --- a/.env.production.example +++ b/.env.production.example @@ -16,5 +16,21 @@ PORT=3000 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" + # 其他配置 # 根据项目需要添加其他环境变量 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0629034..1eae1a2 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,6 @@ coverage/ # 临时文件 *.tmp .cache/ + +# Redis数据文件(本地开发用) +redis-data/