docker-compose.yml, service-level .env files, and the NGINX reverse proxy.
Global notes
- Domains must be updated consistently across APIs, WebSocket, Notifications, Webhooks, and NGINX.
- Changing the primary domain impacts reverse proxy routing, OAuth headers, CORS, webhook endpoints, and TiDB hosts.
- Service environment variables live in their respective directories; keep secrets in Swarm secrets or Vault.
Chat API
MAIN_DOMAIN="<your-domain>"- primary domain for API responsesEXTENSION_DOMAIN="<your-domain>"- extensions hostWEBHOOKS_BASE_URL="https://<webhooks-domain>/v1/webhooks"TRIGGERS_BASE_URL="https://<webhooks-domain>/v1/triggers"EXTENSION_BASE_URL="https://<notifications-domain>"MODERATION_ENABLED=trueRULES_BASE_URL="https://<moderation-domain>/v1/moderation-service"ADMIN_API_HOST="<api-domain>"andCLIENT_API_HOST="<client-api-domain>"ALLOWED_API_DOMAINS="<your-domain>,<additional-allowed-domains>"DB_HOST="<tidb-host>"andDB_HOST_CREATOR="<tidb-host>"V3_CHAT_HOST="<websocket-domain>"
Management API
ADMIN_API_HOST="<api-domain>"andCLIENT_API_HOST="<client-api-domain>"APP_HOST="<dashboard-domain>"API_HOST="https://<mgmt-api-domain>"MGMT_DOMAIN="<your-domain>"andMGMT_DOMAIN_TO_REPLACE="<your-domain>"RULES_BASE_URL="https://<moderation-domain>/v1/moderation"ACCESS_CONTROL_ALLOW_ORIGIN="<allowed-origins>"
WebSocket
Hostnames are derived from NGINX and Chat API configuration; no manual domain updates are typically required.Notifications service
CC_DOMAIN="<your-domain>"- affects notification routing, token validation, and push delivery
Moderation service
CHAT_API_URL="<your-domain>"- used for rule evaluation, metadata reads, and decision submission
Webhooks service
CHAT_API_DOMAIN="<your-domain>"- must match the Chat API domain to avoid retries or signature failures
Extensions
Receipt Updater
RECEIPTS_MYSQL_HOST="<tidb-host>"- updates delivery and read receipts plus thread metadata
SQL Consumer
CONNECTION_CONFIG.host="<tidb-host>"ALTER_USER_CONFIG.host="<tidb-host>"API_CONFIG.API_DOMAIN="<api-domain>"
NGINX configuration files
Update domain values in:chatapi.confextensions.confmgmtapi.confnotifications.confdashboard.confglobalwebhooks.confmoderation.confwebsocket.conf
Domain update checklist
- Chat API, Client API, and Management API domains
- Notifications, Moderation, Webhooks, and Extensions services
- NGINX reverse proxy hostnames
- TiDB host references
- WebSocket host configuration inside Chat API