auto-save 2026-05-15 14:53 (~6)
This commit is contained in:
@@ -1,12 +1,5 @@
|
||||
{
|
||||
"entries": [
|
||||
{
|
||||
"files_changed": 1,
|
||||
"hash": "38091d3",
|
||||
"message": "auto-save 2026-05-13 23:23 (~1)",
|
||||
"ts": "2026-05-13T23:24:03+08:00",
|
||||
"type": "commit"
|
||||
},
|
||||
{
|
||||
"files_changed": 5,
|
||||
"hash": "03770b1",
|
||||
@@ -3251,6 +3244,13 @@
|
||||
"type": "session-heartbeat",
|
||||
"message": "Codex 会话活跃 · 最近命令:codex · 5 项未提交变更 · 最近提交:auto-save 2026-05-15 14:42 (~1)",
|
||||
"files_changed": 5
|
||||
},
|
||||
{
|
||||
"ts": "2026-05-15T14:48:01+08:00",
|
||||
"type": "commit",
|
||||
"message": "auto-save 2026-05-15 14:47 (+6, ~5)",
|
||||
"hash": "27e2002",
|
||||
"files_changed": 12
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ FROM python:3.12-slim
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PIP_NO_CACHE_DIR=1 \
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
JOBS_DIR=/data/jobs
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
4
RULES.md
4
RULES.md
@@ -14,14 +14,14 @@
|
||||
|
||||
## 部署事实
|
||||
- 平台:VPS `76.13.31.179`(Ubuntu 24.04 / Docker Compose / Coolify Traefik)
|
||||
- 发布状态:生产部署配置已生成;公司域名 `marketing.skg.com` 已解析到 VPS,待执行 Compose 上线和 HTTPS 验证
|
||||
- 发布状态:已部署并验证(2026-05-15);`https://marketing.skg.com` 首页 200,`/api/health` 返回 `ok:true`
|
||||
- 主站 / 前端:`https://marketing.skg.com`
|
||||
- API / 后端:`https://marketing.skg.com/api`
|
||||
- 文档 / 解析:`docs/source-analysis.html`(项目内独立文档,不公开挂主应用路由)
|
||||
- 管理后台:待定
|
||||
- 服务器目录:`/opt/skg-marketing-studio`
|
||||
- 生产启动:`docker compose -f docker-compose.prod.yml --env-file deploy/.env.production up -d --build`
|
||||
- 生产架构:`web` 容器用 Nginx 承载 Next 静态导出并反代 `/api/`,`api` 容器跑 FastAPI 4291;Traefik 通过 `coolify` 外部网络接入 80/443
|
||||
- 生产架构:`web` 容器用 Nginx 承载 Next 静态导出并反代 `/api/` 到 `skg-marketing-api:4291`,`api` 容器跑 FastAPI 4291;Traefik 通过 `coolify` 外部网络接入 80/443
|
||||
- 持久化目录:服务器 `./data/jobs` 挂载到后端 `/data/jobs`
|
||||
|
||||
## 快捷登录
|
||||
|
||||
@@ -12,7 +12,7 @@ server {
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://api:4291/;
|
||||
proxy_pass http://skg-marketing-api:4291/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_request_buffering off;
|
||||
proxy_buffering off;
|
||||
|
||||
@@ -57,7 +57,7 @@ docker compose -f docker-compose.prod.yml --env-file deploy/.env.production up -
|
||||
## Runtime Notes
|
||||
|
||||
- `web` is a static Next export served by Nginx.
|
||||
- `web` proxies `/api/` to `api:4291`.
|
||||
- `web` proxies `/api/` to `skg-marketing-api:4291`; avoid the generic hostname `api` because the web container also joins the shared Coolify network.
|
||||
- `api` is only on the internal project network and stores jobs under `/data/jobs`.
|
||||
- Server-side job files persist in `./data/jobs` on the VPS.
|
||||
- Large uploads are allowed up to `2g` at the Nginx proxy layer.
|
||||
|
||||
@@ -946,7 +946,7 @@ SubjectAsset {
|
||||
<span class="tag blue">Deploy</span>
|
||||
</header>
|
||||
<div class="body">
|
||||
<p><strong>改动:</strong>把生产入口确定为 <code>https://marketing.skg.com</code>,DNS 已解析到 VPS <code>76.13.31.179</code>。新增 Docker Compose 生产配置:前端用 Next 静态导出 + Nginx,<code>/api/</code> 反代到 FastAPI;后端任务目录持久化到服务器 <code>./data/jobs</code>;Traefik 通过既有 <code>coolify</code> 外部网络接管 80/443。</p>
|
||||
<p><strong>改动:</strong>把生产入口确定为 <code>https://marketing.skg.com</code>,DNS 已解析到 VPS <code>76.13.31.179</code>。新增 Docker Compose 生产配置:前端用 Next 静态导出 + Nginx,<code>/api/</code> 反代到唯一容器名 <code>skg-marketing-api:4291</code>,避免与 Coolify 网络里其他项目的泛名 <code>api</code> 冲突;后端任务目录持久化到服务器 <code>./data/jobs</code>;Traefik 通过既有 <code>coolify</code> 外部网络接管 80/443。已完成上线验证:HTTPS 首页 200,<code>/api/health</code> 返回 <code>ok:true</code>。</p>
|
||||
<p><strong>影响:</strong><code>Dockerfile.web</code>、<code>Dockerfile.api</code>、<code>docker-compose.prod.yml</code>、<code>deploy/nginx.conf</code>、<code>deploy/.env.production.example</code>、<code>docs/deploy-vps.md</code>、<code>.project.json</code>、<code>RULES.md</code>、<code>docs/source-analysis.html</code>。</p>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user