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
|
|
@ -7,6 +7,8 @@ interface AppConfig {
|
|||
apiVersion: string;
|
||||
deploymentMode: string;
|
||||
authProvider: string;
|
||||
turnEnabled: boolean;
|
||||
forceTurnRelay: boolean;
|
||||
}
|
||||
|
||||
interface AppConfigContextType {
|
||||
|
|
@ -19,6 +21,8 @@ const defaultConfig: AppConfig = {
|
|||
apiVersion: 'unknown',
|
||||
deploymentMode: 'oss',
|
||||
authProvider: 'local',
|
||||
turnEnabled: false,
|
||||
forceTurnRelay: false,
|
||||
};
|
||||
|
||||
const AppConfigContext = createContext<AppConfigContextType>({
|
||||
|
|
@ -39,6 +43,8 @@ export function AppConfigProvider({ children }: { children: ReactNode }) {
|
|||
apiVersion: data.api || 'unknown',
|
||||
deploymentMode: data.deploymentMode || 'oss',
|
||||
authProvider: data.authProvider || 'local',
|
||||
turnEnabled: Boolean(data.turnEnabled),
|
||||
forceTurnRelay: Boolean(data.forceTurnRelay),
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue