Browse Source

fix coturn setup

main
Markus Bergholz 2 months ago
parent
commit
2a5836ea45
Signed by: m GPG Key ID: B45724801354B174
1 changed files with 23 additions and 7 deletions
  1. +23
    -7
      roles/containers/tasks/coturn.yml

+ 23
- 7
roles/containers/tasks/coturn.yml View File

@ -10,6 +10,27 @@
notify:
- reload systemd
- name: coturn config
copy:
dest: /mnt/data/coturn/turnserver.conf
content: |
listening-port=3478
external-ip=78.47.76.92
external-ip=2a01:4f8:c2c:5a49::1
fingerprint
use-auth-secret
static-auth-secret={{ CONFIG.COTURN_STATIC_SECRET }}
realm=coturn.osuv.de
total-quota=0
bps-capacity=0
no-tls
no-dtls
stale-nonce
no-loopback-peers
no-multicast-peers
proc-user=turnserver
proc-group=turnserver
- name: add coturn script
copy:
dest: "/opt/{{ THIS_SERVICE }}"
@ -17,13 +38,8 @@
#!/bin/bash
docker run --rm --name {{ THIS_SERVICE }} \
--detach=false \
--network osuv \
-v {{ DOCKER_DATA }}/caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/home.osuv.de/home.osuv.de.crt:/cert.pem:ro \
-v {{ DOCKER_DATA }}/caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/home.osuv.de/home.osuv.de.key:/privkey.pem:ro \
-p 5349:5349/tcp \
-p 5349:5349/udp \
-e STATIC_SECRET="{{ CONFIG.COTURN_STATIC_SECRET }}" \
-e REALM=home.osuv.de \
--network host \
-v {{ DOCKER_DATA }}/coturn/turnserver.conf:/etc/turnserver.conf:ro \
coturn
mode: +x
register: myservice


Loading…
Cancel
Save