diff --git a/docker/docker-compose.coturn.yml b/docker/docker-compose.coturn.yml index a802070..75244dc 100644 --- a/docker/docker-compose.coturn.yml +++ b/docker/docker-compose.coturn.yml @@ -1,4 +1,6 @@ -# Optional TURN relay, used only by a future/externally integrated WebRTC setup. +# Optional TURN relay for live view; Central uses its URL and shared secret to +# issue short-lived browser credentials. Public reachability needs deployment +# firewall/NAT validation. services: coturn: image: coturn/coturn:4.6 diff --git a/skills/optional-server-services/SKILL.md b/skills/optional-server-services/SKILL.md index 0696c70..9258ac5 100644 --- a/skills/optional-server-services/SKILL.md +++ b/skills/optional-server-services/SKILL.md @@ -16,6 +16,7 @@ The Linux and Windows server installers save service secrets in `/ ## coturn +- Coturn is an optional live-view relay consumed by Central through `LiveMedia:Turn:Urls` and `LiveMedia:Turn:SharedSecret`. Central returns short-lived TURN REST credentials to the browser; the shared secret stays server-side. Keep this service optional and do not describe its integration as future or external-only. - Keep `coturn_secret` sourced from `./optional/secrets/coturn_secret`. - coturn 4.6 does not support `--static-auth-secret-file`; read the mounted Docker secret in a short root initializer and write its configuration into private tmpfs. Do not print the value or pass it in the server process arguments. - Local Compose secrets are owner-only bind mounts too. Start the initializer as root, make the temporary config readable by the image's `nobody` account, then `exec` `turnserver` as `nobody` with `no-new-privileges` enabled. Keep the root init transient; do not run the TURN daemon as root.