mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
feat: enable FORCE_TURN_RELAY to diagnose turn connectivity for local deployment setups (#272)
* filter out local sdp candidates on non local environment * feat: add FORCE_TURN_RELAY variable * add FORCE_TURN_RELAY option in docker-compose * fix: fix github workflow
This commit is contained in:
parent
01c201bf09
commit
e2fe1f3cd4
17 changed files with 410 additions and 37 deletions
|
|
@ -12,6 +12,8 @@ export async function GET() {
|
|||
let apiVersion = "unknown";
|
||||
let deploymentMode = "oss";
|
||||
let authProvider = "local";
|
||||
let turnEnabled = false;
|
||||
let forceTurnRelay = false;
|
||||
|
||||
try {
|
||||
const response = await healthApiV1HealthGet();
|
||||
|
|
@ -20,6 +22,8 @@ export async function GET() {
|
|||
apiVersion = data.version;
|
||||
deploymentMode = data.deployment_mode;
|
||||
authProvider = data.auth_provider;
|
||||
turnEnabled = Boolean(data.turn_enabled);
|
||||
forceTurnRelay = Boolean(data.force_turn_relay);
|
||||
}
|
||||
} catch {
|
||||
apiVersion = "unavailable";
|
||||
|
|
@ -30,5 +34,7 @@ export async function GET() {
|
|||
api: apiVersion,
|
||||
deploymentMode,
|
||||
authProvider,
|
||||
turnEnabled,
|
||||
forceTurnRelay,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue