turn: verbose logs in debug mode
This commit is contained in:
@@ -1016,9 +1016,11 @@ async function startTurn(existingInfra) {
|
||||
|
||||
const readOnly = !serviceConfig.recoveryMode ? '--read-only' : '';
|
||||
const cmd = serviceConfig.recoveryMode ? '/bin/bash -c \'echo "Debug mode. Sleeping" && sleep infinity\'' : '';
|
||||
const verboseLogs = serviceConfig.recoveryMode ? 'true' : '';
|
||||
|
||||
// docker's userland proxy spins a process for every mapped port. this makes exposing port ranges unviable
|
||||
// despite --userland-proxy=false, docker create a firewall rule for each port in a range. this takes over 20s to start/stop containers
|
||||
// constants.TURN_PORT, constants.TURN_TLS_PORT, constants.TURN_UDP_PORT_START, constants.TURN_UDP_PORT_END are exposed automatically in host mode
|
||||
// https://github.com/moby/moby/issues/8356 and https://github.com/moby/moby/issues/14856 https://github.com/moby/moby/issues/36214
|
||||
const runCmd = `docker run --restart=always -d --name=turn \
|
||||
--hostname turn \
|
||||
@@ -1031,6 +1033,7 @@ async function startTurn(existingInfra) {
|
||||
--memory-swap -1 \
|
||||
-e CLOUDRON_TURN_SECRET=${turnSecret} \
|
||||
-e CLOUDRON_REALM=${realm} \
|
||||
-e CLOUDRON_VERBOSE_LOGS=${verboseLogs} \
|
||||
--label isCloudronManaged=true \
|
||||
${readOnly} -v /tmp -v /run ${image} ${cmd}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user