Added turn-server draft

This commit is contained in:
Kevin Veen-Birkenbach 2021-10-22 10:40:54 +02:00
parent c980f6f034
commit 1074ac13aa
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#role docker-turn-server
optional dependencie for nextcloud talk
## see
- https://nextcloud-talk.readthedocs.io/en/latest/TURN/
- https://hub.docker.com/r/instrumentisto/coturn
- https://forum.openmediavault.org/index.php?thread/31782-docker-nextcloud-talk-plugin-and-turnserver/

View File

@ -0,0 +1,9 @@
---
- name: recieve {{turn_server_domain}} certificate
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{turn_server_domain}}
- name: recreate turn server
command:
cmd: docker run -d --network=host --name "turn_server" instrumentisto/coturn -n --listening-port=3478 --fingerprint --use-auth-secret --static-auth-secret={{turn_server_secret}} --realm={{turn_server_domain}} --total-quota=0 --bps-capacity=0 --stale-nonce --no-multicast-peers
#lt-cred-mech # Only on coTURN below v4.5.0.8!
##no-loopback-peers # Only on coTURN below v4.5.1.0!

View File

@ -83,6 +83,11 @@
vars:
domain: forum.{{top_domain}}
http_port: 8005
- name: setup turn server
hosts: turn_server_hosts
become: true
roles:
- role: docker-turn-server
- name: setup yourls hosts
hosts: yourls_hosts
become: true