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 <noreply@anthropic.com>
This commit is contained in:
parent
74e4c55277
commit
e5dcfa6113
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue