feat: 添加生产环境部署配置

- 添加 Dockerfile 和 docker-compose.yml 支持容器化部署
- 添加 PM2 配置文件 ecosystem.config.js
- 添加部署脚本模板 deploy.sh.example
- 添加 Gitea webhook 处理器模板 webhook-handler.js.example
- 添加生产环境配置模板 .env.production.example
- 添加详细的部署指南 DEPLOYMENT.md
- 更新 .gitignore 排除敏感配置文件
This commit is contained in:
moyin
2025-12-17 15:37:40 +08:00
parent 178130bb27
commit a907e64f40
8 changed files with 482 additions and 0 deletions

20
.env.production.example Normal file
View File

@@ -0,0 +1,20 @@
# 生产环境配置模板
# 复制此文件为 .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
# 其他配置
# 根据项目需要添加其他环境变量