hailin
462bd64651
fix(kong,nginx): fix API routing configuration
...
- nginx: preserve full path when proxying to Kong (remove trailing /)
- nginx: increase API timeout to 120s for AI streaming
- kong: use format_version 2.1 for Kong 3.4 compatibility
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 19:38:32 -08:00
hailin
b4a84b76fc
refactor(kong): use DB-less mode with declarative config
...
- Remove kong-database, kong-migrations, kong-init services
- Use KONG_DATABASE=off with declarative config file
- Add kong/kong.yml with all services, routes, and plugins
- Remove kong_data volume (no longer needed)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 19:36:06 -08:00
hailin
fd4f23accc
refactor: move Kong config to kong/ directory
...
Organize infrastructure configs properly:
- nginx/ for Nginx configuration
- kong/ for Kong configuration
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 19:34:04 -08:00
hailin
2512848d6c
refactor(kong): consolidate Kong configuration into single init script
...
- Update init-kong.sh with complete service/route configuration
- Add CORS plugin configuration with all required headers
- Add timeout settings (120s for conversation-service)
- Simplify docker-compose kong-init to use the script
- Add kong-migrations service for database bootstrap
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 19:27:26 -08:00
hailin
572796f753
feat(kong): add Kong API gateway initialization script
...
Configures routes for all microservices:
- user-service: /api/v1/users, /api/v1/auth
- payment-service: /api/v1/payments, /api/v1/subscriptions
- knowledge-service: /api/v1/knowledge
- conversation-service: /api/v1/conversations, /api/v1/messages
- evolution-service: /api/v1/evolution
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 19:24:31 -08:00
hailin
ec66d58e61
fix(nginx): preserve query string for Socket.IO proxy
...
Add $is_args$args to proxy_pass for /socket.io/ and /ws/ locations
to fix "Transport unknown" error caused by missing query parameters.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 19:19:52 -08:00
hailin
92e2b7e445
fix: add CORS_ORIGINS env for conversation-service websocket
...
Allow production domain https://iconsulting.szaiai.com for WebSocket CORS
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 11:01:19 -08:00
hailin
5c44a1a1a1
fix: conversation-service use PORT env variable instead of CONVERSATION_SERVICE_PORT
...
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 10:54:49 -08:00
hailin
c9b5c4d2d7
fix: add POSTGRES_* environment variables for TypeORM
...
TypeORM config reads individual POSTGRES_HOST, POSTGRES_PORT, etc.
environment variables instead of DATABASE_URL. Added these variables
to all backend services in docker-compose.yml.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 10:46:16 -08:00
hailin
4b6778cc29
fix: 添加bcrypt原生编译支持
...
user-service和evolution-service使用bcrypt需要原生编译,
添加python3/make/g++编译工具,安装后删除以减小镜像体积
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 09:12:32 -08:00
hailin
2f9fd3995b
fix: 使用jq正确处理package.json移除workspace依赖
...
sed直接删除行会导致JSON尾随逗号问题,改用jq
正确删除dependencies中的@iconsulting/shared键
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 08:49:41 -08:00
hailin
7417bc1d82
fix: 移除workspace协议依赖解决npm安装问题
...
npm不支持pnpm的workspace:*协议,在安装依赖前
使用sed移除@iconsulting相关依赖行,shared包
已通过COPY单独复制到node_modules
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 08:45:38 -08:00
hailin
287aeb5c72
fix: 修复pnpm monorepo Docker构建问题
...
- 移除runner阶段的pnpm安装(不再需要)
- 使用npm install替代直接复制node_modules
- 单独复制@iconsulting/shared构建产物
- 解决pnpm符号链接在Docker中失效的问题
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 08:32:58 -08:00
hailin
ac105a8c0b
fix: nginx配置支持动态解析,解决后端服务不可用时启动失败问题
...
- 移除静态upstream定义,改用Docker DNS resolver动态解析
- 移除Docker nginx的SSL配置(系统nginx已处理SSL)
- 使用set变量方式引用后端服务,避免启动时DNS解析失败
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 08:24:28 -08:00
hailin
885e84f823
fix: 修复管理员默认密码哈希
...
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 07:58:04 -08:00
hailin
cc3de9244c
fix: 修改nginx SSL端口为18443避免冲突
...
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 07:53:33 -08:00
hailin
f273e7be8d
feat: 傻瓜式nginx反向代理配置
...
- Docker nginx使用8080端口避免与系统nginx冲突
- 启动nginx时自动配置系统nginx反向代理
- 支持Debian/Ubuntu和CentOS/RHEL两种配置目录
- 自动测试配置并重载nginx
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 07:51:49 -08:00
hailin
f0f098b769
fix: 使用正确的 Kong 官方镜像 kong:3.4
...
- 从 kong/kong-gateway:3.4 改为 kong:3.4 (官方镜像)
- 参考: https://hub.docker.com/_/kong
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 07:32:06 -08:00
hailin
2a3681347d
fix: 修复 Kong 镜像名称和移除废弃的 version 属性
...
- 将 kong:3.4-alpine 改为 kong/kong-gateway:3.4
- 移除 docker-compose.yml 中废弃的 version 属性
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 07:26:28 -08:00
hailin
b82fdfe610
fix: 添加 border 颜色定义修复 Tailwind 构建错误
...
- 在 web-client tailwind.config.js 中添加 border 颜色
- 修复 'border-border' 类未定义导致的构建失败
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 07:06:32 -08:00
hailin
6e3ef3251c
delete :q
2026-01-09 22:47:01 +08:00
hailin
8ac2909530
.
2026-01-09 22:39:40 +08:00
hailin
ae9b33a491
refactor: 改用 Docker 容器构建,无需在主机安装 Node.js
...
- 移除对主机 node/pnpm 的依赖,只需要 Docker
- 新增 builder 镜像自动创建功能
- 所有构建操作在容器中执行
- 支持 docker-compose 和 docker compose (V2)
- 使用 pnpm store volume 加速依赖安装
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 06:35:05 -08:00
hailin
3ac83e9305
feat: 添加 SSL 证书自动申请和 Kong API Gateway 配置
...
新增功能:
- deploy.sh 添加 ssl 命令支持 Let's Encrypt 证书自动申请
- deploy.sh 添加 kong 命令支持 API Gateway 路由配置
- deploy.sh 添加 deploy-full 命令一键完整部署(含SSL)
- Nginx 配置更新为 HTTPS,支持 HTTP->HTTPS 重定向
- 域名配置为 iconsulting.szaiai.com
SSL 功能:
- ./deploy.sh ssl install 安装 certbot
- ./deploy.sh ssl obtain 申请证书
- ./deploy.sh ssl renew 续期证书
- ./deploy.sh ssl auto-renew 配置自动续期
Kong 功能:
- ./deploy.sh kong setup 配置所有微服务路由
- ./deploy.sh kong status 查看网关状态
- ./deploy.sh kong services 查看服务列表
- ./deploy.sh kong routes 查看路由列表
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 00:07:26 -08:00
hailin
a7add8ff90
Initial commit: iConsulting 香港移民咨询智能客服系统
...
项目架构:
- Monorepo (pnpm + Turborepo)
- 后端: NestJS 微服务 + Claude Agent SDK
- 前端: React + Vite + Ant Design
包含服务:
- conversation-service: 对话服务 (Claude AI)
- user-service: 用户认证服务
- payment-service: 支付服务 (支付宝/微信/Stripe)
- knowledge-service: 知识库服务 (RAG + Neo4j)
- evolution-service: 自我进化服务
- web-client: 用户前端
- admin-client: 管理后台
基础设施:
- PostgreSQL + Redis + Neo4j
- Kong API Gateway
- Nginx 反向代理
- Docker Compose 部署配置
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 00:01:12 -08:00