From b20be72155213e13e037e7ee8322ef989c180d21 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Tue, 7 Jul 2026 22:27:28 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E9=87=8D=E7=94=BB=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=9E=B6=E6=9E=84=E5=9B=BE=E2=80=94=E2=80=94=E5=8D=95=E8=84=8A?= =?UTF-8?q?=E6=9F=B1=E5=B8=83=E5=B1=80=E6=9B=BF=E4=BB=A3=E4=BA=94=E7=BA=BF?= =?UTF-8?q?=E4=B9=8C=E9=B8=A6=E8=84=9A=EF=BC=8C=E8=A1=A5=20Redis=20?= =?UTF-8?q?=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 客户端五端收进分组条(单一竖线入 nginx),标签白底不再压线, nginx 泳道排满不留空带,MySQL/Redis 并排(jiu_redis 上线后架构图欠账)。 Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01JJ1g8XV1YhhmHRzhwWEW7o --- docs/manual/dev-manual.html | 106 +++++++++++++++++++++--------------- 1 file changed, 63 insertions(+), 43 deletions(-) diff --git a/docs/manual/dev-manual.html b/docs/manual/dev-manual.html index 9b7acfa..8f8aae0 100644 --- a/docs/manual/dev-manual.html +++ b/docs/manual/dev-manual.html @@ -69,55 +69,75 @@

五端 Flutter 客户端统一访问 https://jiu.51yanmei.com。阿里云主机上 nginx 1.24 终结 TLS(443 ssl+http2,certbot webroot 自动续期,80 → 443 跳转),按 location 分发:API/健康检查/版本反代到本机 8081 的 Go 后端(systemd jiu.service),静态资源(Flutter Web /app、商品图 /images、安装包 /downloads、营销站根路径)直接由 nginx 服务;/product/:id/app/product/:id(扫码分享页)回代后端注入 OG 标签。后端连本机 Docker 容器 jiu_mysql(MySQL 8,127.0.0.1:3306)。未鉴权的 /api/v1/(public|auth)/ 在 nginx 层再加一道 per-IP 限流(10r/s burst 20)。源:deploy/nginx-jiu-ali.confdeploy/jiu.service

- + - - + + + + + - - - Windows - macOS - Web (/app) - Android - iOS + + + + + + + + https://jiu.51yanmei.com + + proxy_pass 127.0.0.1:8081 + + 127.0.0.1:3306 - - - - - - https://jiu.51yanmei.com - - - ali · nginx 1.24 — 443 ssl+http2(certbot webroot 自动续期)· 80 → 443 + + + + 客户端 · FLUTTER 五端 + + Windows + macOS + Web(/app) + Android + iOS + + + + + + + ali · nginx 1.24 — 443 ssl+http2(certbot webroot 自动续期)· 80 → 443 - - 静态:/app(Flutter Web) - /images · /downloads · / 营销站 - - 反代:/api /health /version - → 127.0.0.1:8081 - - 限流反代:/api/v1/(public|auth) - 10r/s · burst 20(per-IP) - - /product · /app/product - OG 注入 → 回代后端 - 证书 /etc/letsencrypt/live/jiu.51yanmei.com/ · client_max_body_size 20m · /import 超时 300s · 安全头 HSTS/XFO/nosniff + + 静态直出 + /app · /images · /downloads · 官网 + + 反代 API + /api · /health · /version → :8081 + + 限流反代(per-IP) + /api/v1/(public|auth) 10r/s·burst20 + + 公开页 SSR + /product · /shop → 回代后端 - - proxy_pass 127.0.0.1:8081 - - - jiu-server(Go / Gin)— systemd jiu.service - /opt/jiu/backend/jiu-server · EnvironmentFile=/opt/jiu/config/production.env(SERVER_PORT=8081) - - - - MySQL 8 — docker 容器 jiu_mysql - 127.0.0.1:3306 · 库 jiu_db · 每日备份见 §6 + + 证书 /etc/letsencrypt/live/jiu.51yanmei.com/ · client_max_body_size 20m · /import 超时 300s · 安全头 HSTS / XFO / nosniff + + + + jiu-server(Go / Gin)— systemd jiu.service · :8081 + /opt/jiu/backend/jiu-server · EnvironmentFile=/opt/jiu/config/production.env + + + + MySQL 8 — docker jiu_mysql + 127.0.0.1:3306 · 库 jiu_db · 每日备份见 §6 + + Redis 7 — jiu_redis + 限流/登录锁 · :6379 +