feat: add coturn configurations (#143)

* feat: add coturn changes

* add turn credentials and config

* fix: fix setup_remote script and docker compose
This commit is contained in:
Abhishek 2026-02-03 13:52:50 +05:30 committed by GitHub
parent 7e438ad049
commit bf972fcfec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 470 additions and 86 deletions

View file

@ -1,22 +0,0 @@
/*
Route to provide TURN server configuration at runtime.
This allows OSS users to configure TURN servers via docker-compose.yaml
environment variables, since NEXT_PUBLIC_* keys are injected at build time.
*/
import { NextResponse } from 'next/server';
export async function GET() {
const host = process.env.TURN_HOST || '';
const username = process.env.TURN_USERNAME || '';
const password = process.env.TURN_PASSWORD || '';
// Only return enabled: true if all required fields are set
const enabled = !!(host && username && password);
return NextResponse.json({
enabled,
host,
username,
password,
});
}