5 Commits

Author SHA1 Message Date
张翔 88837924f2 refactor: 调整部署结构以支持多容器管理
- 重新组织部署目录结构:
  - DEPLOY_ROOT: /home/novalon/docker-app (多容器管理根目录)
  - PROJECT_NAME: novalon-website (项目名称)
  - PROJECT_DIR: /home/novalon/docker-app/novalon-website (项目目录)
  - CONTAINER_NAME: novalon-website (容器名称)
- 修复heredoc变量展开问题,使用双引号ENDSSH
- 在上传文件前创建项目目录
- 更新所有容器相关命令使用正确的变量
- 更新部署文档,添加多容器管理结构说明
- 添加运维告警邮箱信息到项目信息
2026-03-26 19:38:17 +08:00
张翔 8b48617bb7 fix: 修复部署脚本中的关键问题并添加运维告警邮箱配置
- 修复deploy.sh中的关键问题:
  - 删除本地创建远程目录的错误代码
  - 修复SCP目标路径错误
  - 修复grep中的变量展开问题
  - 修复容器日志查看命令
  - 实现健康检查机制替代硬编码等待时间
  - 添加SSH连接验证
  - 添加cron任务配置的错误处理
- 添加运维告警邮箱环境变量OPS_ALERT_EMAIL
- 更新部署文档,添加SSL证书自动续期详细说明
2026-03-26 19:35:27 +08:00
张翔 ece3c86e29 feat: 添加Docker部署配置和文档
- 创建docker-compose.yml多容器编排配置
- 创建Dockerfile多阶段构建配置
- 创建nginx.conf反向代理和SSL配置
- 创建.env.example环境变量示例文件
- 创建setup-ssl.sh SSL证书配置脚本
- 创建deploy.sh自动化部署脚本
- 创建DEPLOYMENT.md详细部署文档
- 配置容器名称为novalon-website,版本1.0.0
- 配置端口映射80和443
- 配置Let's Encrypt免费SSL证书
- 配置域名novalon.cn,服务器IP 139.155.109.62
- 配置ICP备案号:蜀ICP备2026013658号
2026-03-26 19:27:18 +08:00
张翔 498bb3a3c8 refactor: reorganize project structure and improve code quality
- Move CI/CD configs to config/ci/ directory
- Reorganize scripts into categorized directories (deployment, monitoring, testing, utils)
- Consolidate documentation into docs/ directory with proper structure
- Update linting and testing configurations
- Remove obsolete test reports and performance summaries
- Add new documentation for code quality tools and contact form security
- Improve project organization and maintainability
- Fix lint-staged config to only lint JS/TS files
- Disable react/react-in-jsx-scope rule for Next.js compatibility
- Ignore scripts and test config directories in ESLint
2026-03-24 13:38:58 +08:00
张翔 11e3147015 docs: add deployment documentation for security features 2026-03-24 11:44:53 +08:00