mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-13 08:15:21 +02:00
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:
parent
7e438ad049
commit
bf972fcfec
13 changed files with 470 additions and 86 deletions
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue