From e5dcfa6113c45622922137050dedbe6534503554 Mon Sep 17 00:00:00 2001 From: hailin Date: Sat, 21 Feb 2026 22:54:17 -0800 Subject: [PATCH] feat: configure it0.szaiai.com and it0api.szaiai.com domains - Update Kong CORS origins to allow it0.szaiai.com - Update WebSocket URL to wss://it0api.szaiai.com - Fix proxy route to read API_BASE_URL at request time (was being inlined at build time by Next.js standalone) Co-Authored-By: Claude Opus 4.6 --- deploy/docker/docker-compose.yml | 2 +- packages/gateway/config/kong.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/docker/docker-compose.yml b/deploy/docker/docker-compose.yml index 4f80f20..3475353 100644 --- a/deploy/docker/docker-compose.yml +++ b/deploy/docker/docker-compose.yml @@ -327,7 +327,7 @@ services: - HOSTNAME=0.0.0.0 - API_BASE_URL=http://api-gateway:8000 - NEXT_PUBLIC_API_BASE_URL=/api/proxy - - NEXT_PUBLIC_WS_URL=ws://localhost:18000 + - NEXT_PUBLIC_WS_URL=wss://it0api.szaiai.com healthcheck: test: ["CMD-SHELL", "node -e \"require('http').get('http://127.0.0.1:3000/',r=>{process.exit(r.statusCode<500?0:1)}).on('error',()=>process.exit(1))\""] interval: 30s diff --git a/packages/gateway/config/kong.yml b/packages/gateway/config/kong.yml index 33bc9fb..4f3424f 100644 --- a/packages/gateway/config/kong.yml +++ b/packages/gateway/config/kong.yml @@ -101,7 +101,8 @@ plugins: config: origins: - http://localhost:3000 - - https://admin.it0.your-domain.com + - https://it0.szaiai.com + - http://it0.szaiai.com methods: - GET - POST