Updated turn-server configuration. Not functioning yet.

This commit is contained in:
Kevin Veen-Birkenbach 2022-04-12 11:14:24 +02:00
parent 7bd377af1f
commit 8cdc8cad91
5 changed files with 14 additions and 8 deletions

View File

@ -134,3 +134,5 @@ Until NC24 MariaDB version has to be used.
- https://unix.stackexchange.com/questions/478855/ansible-docker-container-and-depends-on
- https://github.com/gdiepen/docker-convenience-scripts
- https://help.nextcloud.com/t/several-issues-after-upgrading-to-nextcloud-21/113118/3
- https://forum.openmediavault.org/index.php?thread/31782-docker-nextcloud-talk-plugin-and-turnserver/
- https://help.nextcloud.com/t/nextcloud-talk-im-docker-container-turn-server-auf-docker-host-kein-video/84133/10

View File

@ -0,0 +1,8 @@
---
- name: recreate turn server
command:
cmd: docker restart -d -p "{{turn_server_listening_port}}:{{turn_server_listening_port}}" -p "{{turn_server_listening_port}}:{{turn_server_listening_port}}/udp" --mount type=tmpfs,destination=/var/lib/coturn --name "turn_server" -v "/home/administrator/volumes/docker/turn-server/turnserver.conf:/etc/coturn/turnserver.conf" coturn/coturn
# -p 49152-65535:49152-65535/udp
environment:
COMPOSE_HTTP_TIMEOUT: 600
DOCKER_CLIENT_TIMEOUT: 600

View File

@ -10,9 +10,4 @@
- name: configure turnserver.conf
template: src=templates/turnserver.conf.j2 dest=/home/administrator/volumes/docker/turn-server/turnserver.conf
- name: recreate turn server
command:
cmd: docker run -d -p 3478:3478 -p 3478:3478/udp --name "turn_server" -v "/home/administrator/volumes/docker/turn-server/turnserver.conf:/etc/coturn/turnserver.conf" coturn/coturn
# --mount type=tmpfs,destination=/var/lib/coturn
# -p 49152-65535:49152-65535/udp
notify: recreate turn server

View File

@ -1,9 +1,9 @@
listening-port=3478
listening-port={{turn_server_listening_port}}
fingerprint
use-auth-secret
static-auth-secret={{turn_server_secret}}
realm={{turn_server_domain}}
total-quota=100
total-quota=0
bps-capacity=0
stale-nonce
no-multicast-peers

View File

@ -0,0 +1 @@
turn_server_listening_port: 3478