mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-26 06:31:04 +01:00
Added turn-server draft
This commit is contained in:
parent
c980f6f034
commit
1074ac13aa
8
roles/docker-turn-server/readme.md
Normal file
8
roles/docker-turn-server/readme.md
Normal 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/
|
9
roles/docker-turn-server/tasks/main.yml
Normal file
9
roles/docker-turn-server/tasks/main.yml
Normal 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!
|
5
site.yml
5
site.yml
@ -83,6 +83,11 @@
|
|||||||
vars:
|
vars:
|
||||||
domain: forum.{{top_domain}}
|
domain: forum.{{top_domain}}
|
||||||
http_port: 8005
|
http_port: 8005
|
||||||
|
- name: setup turn server
|
||||||
|
hosts: turn_server_hosts
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- role: docker-turn-server
|
||||||
- name: setup yourls hosts
|
- name: setup yourls hosts
|
||||||
hosts: yourls_hosts
|
hosts: yourls_hosts
|
||||||
become: true
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user