fix: use domain names for API access, China IP for LiveKit

Flutter app now uses https://it0api.szaiai.com (nginx reverse proxy)
instead of direct IP:port. LiveKit URL uses China IP 14.215.128.96
for lower latency from domestic mobile clients.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-01 21:44:25 -08:00
parent 7fb0168dc5
commit 8a48e92970
2 changed files with 4 additions and 4 deletions

View File

@ -390,7 +390,7 @@ services:
- OPENAI_TTS_VOICE=${OPENAI_TTS_VOICE:-coral} - OPENAI_TTS_VOICE=${OPENAI_TTS_VOICE:-coral}
- LIVEKIT_API_KEY=devkey - LIVEKIT_API_KEY=devkey
- LIVEKIT_API_SECRET=devsecret - LIVEKIT_API_SECRET=devsecret
- LIVEKIT_WS_URL=ws://154.84.135.121:7880 - LIVEKIT_WS_URL=ws://14.215.128.96:7880
healthcheck: healthcheck:
test: ["CMD-SHELL", "python3 -c \"import urllib.request; urllib.request.urlopen('http://localhost:3008/docs')\""] test: ["CMD-SHELL", "python3 -c \"import urllib.request; urllib.request.urlopen('http://localhost:3008/docs')\""]
interval: 30s interval: 30s

View File

@ -21,9 +21,9 @@ class AppConfig {
); );
factory AppConfig.production() => const AppConfig( factory AppConfig.production() => const AppConfig(
apiBaseUrl: 'http://154.84.135.121:18000', apiBaseUrl: 'https://it0api.szaiai.com',
wsBaseUrl: 'ws://154.84.135.121:18000', wsBaseUrl: 'wss://it0api.szaiai.com',
livekitUrl: 'ws://154.84.135.121:7880', livekitUrl: 'ws://14.215.128.96:7880',
environment: 'production', environment: 'production',
); );
} }