feat: 建立监控告警体系和生产环境配置

阶段三:建立监控告警体系
- 集成Sentry错误监控:安装依赖,创建配置文件,初始化Sentry
- 配置性能监控:创建监控工具类,实现健康检查API
- 更新环境变量模板,添加Sentry和数据库配置

阶段四:配置生产环境
- 创建生产环境变量模板
- 创建Dockerfile和docker-compose.prod.yml
- 创建备份和恢复脚本
- 设置脚本执行权限
This commit is contained in:
张翔
2026-03-09 11:00:42 +08:00
parent 6d92024b63
commit 4897c6e11c
14 changed files with 4475 additions and 40 deletions
+18
View File
@@ -6,3 +6,21 @@ COMPANY_EMAIL=contact@novalon.cn
# Next.js Configuration
NEXT_PUBLIC_SITE_URL=http://localhost:3000
# Sentry Error Monitoring (Optional - for production)
NEXT_PUBLIC_SENTRY_DSN=https://xxx@xxx.ingest.sentry.io/xxx
# NextAuth Configuration
NEXTAUTH_SECRET=your-secret-key-here
NEXTAUTH_URL=http://localhost:3000
# Admin User
ADMIN_EMAIL=admin@novalon.cn
ADMIN_PASSWORD=your-secure-password
# Database
DATABASE_URL=file:./data/dev.db
# File Upload
UPLOAD_DIR=./uploads
MAX_FILE_SIZE=10485760