Commit Graph

13 Commits

Author SHA1 Message Date
hailin 223aa25af1 fix(docker): add health check endpoints and fix IPv6 issue
- Add /health endpoints to all NestJS services (user, payment, knowledge, conversation, evolution)
- Fix nginx healthcheck to use 127.0.0.1 instead of localhost (IPv6 issue)
- Add healthcheck configuration to docker-compose for all backend services
- Use start_period to allow services time to initialize before health checks

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 02:13:42 -08:00
hailin 7f2fc153b5 refactor: simplify Anthropic client config using baseURL
Remove https-proxy-agent dependency since ANTHROPIC_BASE_URL already
supports pointing to a proxy server directly.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 20:45:44 -08:00
hailin c6c9623f36 feat(conversation): add proxy support for Anthropic API
- Add https-proxy-agent dependency
- Configure httpAgent in ClaudeAgentService when ANTHROPIC_PROXY_URL is set
- Add ANTHROPIC_PROXY_URL environment variable to docker-compose.yml

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 20:34:13 -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 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 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 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 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