fix(install): charger le secret d’auth coturn avec la version 4.6 (#324)
Heimdall Gitea / Detect CI scope (push) Successful in 6s
Heimdall Gitea / Build and tests (push) Successful in 20m56s
Heimdall Gitea / Build and scan agent image (push) Failing after 9m22s
Heimdall Gitea / Build and scan server image (push) Failing after 9m43s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Failing after 14m18s
Heimdall Gitea / Publish versioned installer release (push) Skipped
Heimdall Gitea / CI policy (push) Failing after 2s

fix(install): load coturn auth secret with 4.6

Co-authored-by: Arnaud Dartois <admin@tordais.cc>
This commit was merged in pull request #324.
This commit is contained in:
arnaud.dartois authored and Arnaud Dartois committed 2026-11-11 09:42:51 +01:00
1 parent bc7ddccfe3
commit fcc719d627
2 files changed
+12 -11

No files matched your search

+10 -10
View File
@@ -7,16 +7,16 @@ services:
- "${COTURN_PORT:-3478}:3478/tcp"
- "${COTURN_PORT:-3478}:3478/udp"
- "${COTURN_RELAY_PORT_MIN:-49160}-${COTURN_RELAY_PORT_MAX:-49200}:${COTURN_RELAY_PORT_MIN:-49160}-${COTURN_RELAY_PORT_MAX:-49200}/udp"
entrypoint: ["turnserver"]
command: >
-n --use-auth-secret
--static-auth-secret-file=/run/secrets/coturn_secret
--realm=${COTURN_REALM:-heimdall.local}
--fingerprint --no-tlsv1 --no-tlsv1_1 --log-file=stdout
--no-cli
--listening-port=3478
--min-port=${COTURN_RELAY_PORT_MIN:-49160}
--max-port=${COTURN_RELAY_PORT_MAX:-49200}
entrypoint: ["/bin/sh", "-c"]
command:
- >-
exec turnserver -n --use-auth-secret
--static-auth-secret="$$(cat /run/secrets/coturn_secret)"
--realm=${COTURN_REALM:-heimdall.local}
--fingerprint --no-tlsv1 --no-tlsv1_1 --log-file=stdout
--no-cli --listening-port=3478
--min-port=${COTURN_RELAY_PORT_MIN:-49160}
--max-port=${COTURN_RELAY_PORT_MAX:-49200}
secrets:
- coturn_secret
restart: unless-stopped
+2 -1
View File
@@ -16,7 +16,8 @@ The Linux and Windows server installers run optional Compose files with the inst
## coturn
- Keep `coturn_secret` sourced from `./optional/secrets/coturn_secret`.
- Use `turnserver` as the explicit image entrypoint, bridge networking, and explicit TCP/UDP listener and UDP relay port publications; the upstream image has a `turnadmin` entrypoint, and host networking cannot be combined with useful Compose port mappings.
- coturn 4.6 does not support `--static-auth-secret-file`; read the mounted Docker secret in a shell entrypoint and pass it to `--static-auth-secret`. Do not print the value.
- Use a shell entrypoint that executes `turnserver`, bridge networking, and explicit TCP/UDP listener and UDP relay port publications; the upstream image has a `turnadmin` entrypoint, and host networking cannot be combined with useful Compose port mappings.
- Keep the published relay range identical to coturn's `--min-port`/`--max-port` options. Make listener and relay settings configurable with documented defaults.
- Set `COTURN_EXTERNAL_IP` only when NAT requires coturn to advertise an explicit public address. The operator must forward the listener and relay range through firewalls/NAT.
- Do not claim public TURN reachability from a local container startup. It requires an external ICE/TURN client on a real network.