feat: 交付任务005-021全量改动(自动化/AI/联系人中心、消息中心改造、运维与容器化)
- 自动化中心:规则引擎、流程画布与触发器(V7/V10/V12/V18/V21)、测试全流程、安全边界、执行记录 - AI 中心:服务商/模型/调用与工具授权/治理(V8/V17)及配套前端页面 - 联系人中心:联系人目录、分组/标签、同步幂等(V19)与实装页面 - 消息中心:三栏布局重做、头像昵称服务端抓取与缓存(V16 conversation_profile)、出站归属修复 - 接入管理:NapCat 反向 WS/HTTP 回调多通道发送传输、连接状态统一口径 - 运维中心:备份保留与恢复确认(V13/V22/V24)、监控告警(V23)、日志与审计 - 全局:账号上下文切换(V20 account_profile)、统一 UI 基础组件、分页样式、Flyway 增量迁移护栏 - 部署:Dockerfile/docker-compose/Nginx 容器化编排与 CI 校验脚本 - 文档:任务 005-021 交付记录、设计画板导出、接口/数据库/架构文档同步
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
# QLinker 前端容器入口(任务 020)
|
||||
# 后端不托管静态资源:vite build 产物由 Nginx 提供,/api 与 NapCat 入站路径反向代理到 app:8080。
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
server_tokens off;
|
||||
|
||||
# NapCat HTTP 回调与消息体上限;后端自身仍会做请求体大小校验。
|
||||
client_max_body_size 16m;
|
||||
|
||||
gzip on;
|
||||
gzip_min_length 1024;
|
||||
gzip_types text/css application/javascript application/json image/svg+xml;
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://app:8080;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_read_timeout 120s;
|
||||
}
|
||||
|
||||
location /actuator/health {
|
||||
proxy_pass http://app:8080;
|
||||
proxy_set_header Host $host;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
# 反向 WebSocket / HTTP 回调入口(默认关闭,启用后由这里转发)。
|
||||
location /napcat/ {
|
||||
proxy_pass http://app:8080;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_read_timeout 300s;
|
||||
}
|
||||
|
||||
# 前端使用 hash 路由(createWebHashHistory),try_files 仅作为兜底。
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user