TURN deployment packaging is documented in docs/turn-deployment.md.
The web, desktop, and mobile clients can now be built with runtime values injected at build time through environment variables.
Supported variables:
QXP_SERVER_ORIGINQXP_API_BASE_URLQXP_WS_URLQXP_RELAY_ONLYQXP_TURN_URLScomma-separatedQXP_TURN_USERNAMEQXP_TURN_CREDENTIALQXP_CALLS_ENABLEDQXP_CALLS_UNAVAILABLE_REASONQXP_RUNTIME_CONFIG_URLoptional source HTML to merge from
Example:
cd web
QXP_SERVER_ORIGIN=https://chat.example.com \
QXP_TURN_URLS=turn:turn.example.com:3478?transport=udp,turns:turn.example.com:5349?transport=tcp \
QXP_TURN_USERNAME=example \
QXP_TURN_CREDENTIAL=secret \
QXP_CALLS_ENABLED=true \
npm run buildOn CI/CD, these values can be provided as environment secrets for the web build and the Tauri desktop/mobile build.