mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-13 08:15:21 +02:00
fix: decouple relay-only diagnostics from LAN TURN setup
This commit is contained in:
parent
777b0596f7
commit
07cea13caa
5 changed files with 143 additions and 38 deletions
|
|
@ -167,6 +167,7 @@ if ([string]::IsNullOrEmpty($env:ENABLE_COTURN)) {
|
|||
$UseCoturn = Test-IsEnabled $EnableCoturn
|
||||
$TurnHost = $env:TURN_HOST
|
||||
$TurnSecret = $env:TURN_SECRET
|
||||
$ForceTurnRelay = if ([string]::IsNullOrEmpty($env:FORCE_TURN_RELAY)) { 'false' } else { $env:FORCE_TURN_RELAY }
|
||||
|
||||
if ($UseCoturn) {
|
||||
$defaultTurnHost = Get-DefaultLanIPv4
|
||||
|
|
@ -208,6 +209,7 @@ Write-Host " Coturn: $EnableCoturn" -ForegroundColor Blue
|
|||
if ($UseCoturn) {
|
||||
Write-Host " TURN Host: $TurnHost" -ForegroundColor Blue
|
||||
Write-Host ' TURN Secret: ********' -ForegroundColor Blue
|
||||
Write-Host " Force relay: $ForceTurnRelay" -ForegroundColor Blue
|
||||
}
|
||||
Write-Host " Telemetry: $EnableTelemetry" -ForegroundColor Blue
|
||||
Write-Host " Registry: $Registry" -ForegroundColor Blue
|
||||
|
|
@ -251,6 +253,9 @@ $envLines = @(
|
|||
''
|
||||
'# Telemetry (set to false to disable)'
|
||||
"ENABLE_TELEMETRY=$EnableTelemetry"
|
||||
''
|
||||
'# Relay-only ICE candidates for explicit TURN diagnostics'
|
||||
"FORCE_TURN_RELAY=$ForceTurnRelay"
|
||||
)
|
||||
|
||||
if ($UseCoturn) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue