Skip to content

系统架构

服务器

  • 天翼云 113.249.107.92(Ubuntu 24.04)
  • 1 台 ECS,所有服务 in-process(没有 K8s/Docker)
  • nginx 1.24 反代 + 多个 PM2 进程

进程

进程端口备注
vehicle-mgmt(robovan)3000vehicle_mgmt + shared_authPM2 cluster
nem-poi(nempoi)3100nem_poi + shared_authPM2 fork(interpreter:none)

shared_auth 库由两个进程同时连(各自 PG user 都有 GRANT)。

数据库

shared_authusers(跨 app)/ sessions / permissions / roles / role_permissions
vehicle_mgmtvehicles / orders / trips / assignments / customers / vehicle_costs / order_costs / data_snapshots / login_events / audit_logs / role_permission_grants(已废)
nem_poiorganizations / pois / poi_pictures / login_logs / audit_logs

域名与路由

zephyrian.site (主域)
├─ /                  → /opt/robovan/portal/index.html(静态门户)
├─ /admin.html        → /opt/robovan/portal/admin.html(超管面板)
├─ /api/auth/login    → 反代 :3000(让门户登录调 robovan)
├─ /api/auth/feishu   → 反代 :3000
└─ /(api|dashboard|vehicles|...) → 301 → fleet.zephyrian.site$path

fleet.zephyrian.site
└─ /                  → 反代 :3000(robovan 完整 SPA + API)

nempoi.zephyrian.site
└─ /                  → 反代 :3100(nempoi 完整 SPA + API)

接下来

京ICP备2026033946号