From 2e954a6de784e96af56827d81130386b0a61f49c Mon Sep 17 00:00:00 2001 From: moyin <244344649@qq.com> Date: Wed, 17 Dec 2025 20:23:28 +0800 Subject: [PATCH] =?UTF-8?q?config=EF=BC=9A=E6=9B=B4=E6=96=B0=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=85=8D=E7=BD=AE=E5=92=8C=E5=BF=BD=E7=95=A5=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在生产环境配置示例中添加邮件服务配置 - 在生产环境配置示例中添加Redis配置 - 更新.gitignore忽略Redis数据文件和日志文件 --- .env.production.example | 16 ++++++++++++++++ .gitignore | 3 +++ 2 files changed, 19 insertions(+) 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/