guanghulab/image-studio/deploy/DEPLOY_REPORT.md

51 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

# 铸渊图片工作室 · 部署回执
## 部署信息
| 项目 | 详情 |
|------|------|
| **部署时间** | 2026-05-23 08:04 UTC+8 |
| **部署位置** | 新加坡 BS-SG-001铸渊大脑43.156.237.110 |
| **服务端口** | 3912PM2守护 |
| **访问入口** | `https://guanghulab.com/images/` |
| **架构** | 广州 Nginx → 新加坡 Nginx → image-studio:3912 |
| **守护进程** | PM2image-studio (online, 0 restarts) |
## 全链路验证
| 链路节点 | 状态 | HTTP |
|----------|:----:|:----:|
| SG localhost:3912 | 🟢 | 200 |
| SG nginx /images/ | 🟢 | 200 |
| SG public /images/ | 🟢 | 200 |
| GZ→SG /images/ | 🟢 | 200 |
| GZ nginx /images/ | 🟢 | 200 |
| GZ nginx→图片下载 | 🟢 | 200 |
## 图片生成测试
| 风格 | 文件 | 尺寸 | 自动检测 |
|------|------|:----:|:--------:|
| 小红书 | `deploy_greeting.png` | 9.3KB | paragraph + guanghu |
| 即刻 | `final_jike.png` | 13KB | quote + rose |
| 海报 | `final_poster.png` | 66KB | notice + cream |
## 部署的源代码文件
- `/data/image-studio/config.js` — 风格配置 + 内容分析
- `/data/image-studio/renderer.js` — Puppeteer渲染引擎
- `/data/image-studio/generate.js` — 神笔马良 `fromText()` 入口
- `/data/image-studio/server.js` — Web服务
- `/data/image-studio/templates/xiaohongshu.js` — 小红书卡片
- `/data/image-studio/templates/jike.js` — 即刻卡片
- `/data/image-studio/templates/poster.js` — 海报模板
- `/data/image-studio/templates/dynamic.js` — 万能动态模板
## Nginx配置变更
**新加坡** (`/etc/nginx/sites-enabled/default`):
添加 `location /images/` → proxy_pass 到 `127.0.0.1:3912`
**广州** (`/etc/nginx/sites-enabled/guanghulab`):
添加 `location /images/` → proxy_pass 到 `http://43.156.237.110/images/`