mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-26 06:31:04 +01:00
Optimized coturn
This commit is contained in:
parent
1074ac13aa
commit
94c792fc08
@ -47,7 +47,7 @@ services:
|
|||||||
image: "nextcloud:{{nextcloud_version}}-fpm-alpine"
|
image: "nextcloud:{{nextcloud_version}}-fpm-alpine"
|
||||||
restart: always
|
restart: always
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
volumes:
|
volumes:
|
||||||
- data:/var/www/html
|
- data:/var/www/html
|
||||||
entrypoint: /cron.sh
|
entrypoint: /cron.sh
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
#role docker-turn-server
|
#role docker-turn-server
|
||||||
|
|
||||||
optional dependencie for nextcloud talk
|
May this service needs to be implemented for jitis. It's directly integrated in the docker compose file of role docker-nextcloud
|
||||||
|
|
||||||
## see
|
## see
|
||||||
- https://nextcloud-talk.readthedocs.io/en/latest/TURN/
|
- https://nextcloud-talk.readthedocs.io/en/latest/TURN/
|
||||||
- https://hub.docker.com/r/instrumentisto/coturn
|
- https://hub.docker.com/r/instrumentisto/coturn
|
||||||
- https://forum.openmediavault.org/index.php?thread/31782-docker-nextcloud-talk-plugin-and-turnserver/
|
- https://forum.openmediavault.org/index.php?thread/31782-docker-nextcloud-talk-plugin-and-turnserver/
|
||||||
|
- https://markus-blog.de/index.php/2020/11/20/how-to-run-nextcloud-talk-high-performance-backend-with-stun-turnserver-on-ubuntu-with-docker-compose/
|
||||||
|
- https://github.com/crazy-max/docker-nextcloud/issues/15
|
||||||
|
@ -1,9 +1,18 @@
|
|||||||
---
|
---
|
||||||
- name: recieve {{turn_server_domain}} certificate
|
#- 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}}
|
# command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{turn_server_domain}}
|
||||||
|
|
||||||
|
- name: "create /home/administrator/volumes/docker/turn-server/"
|
||||||
|
file:
|
||||||
|
path: "/home/administrator/volumes/docker/turn-server"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
|
- name: configure turnserver.conf
|
||||||
|
template: src=templates/turnserver.conf.j2 dest=/home/administrator/volumes/docker/turn-server/turnserver.conf
|
||||||
|
|
||||||
- name: recreate turn server
|
- name: recreate turn server
|
||||||
command:
|
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
|
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
|
||||||
#lt-cred-mech # Only on coTURN below v4.5.0.8!
|
# --mount type=tmpfs,destination=/var/lib/coturn
|
||||||
##no-loopback-peers # Only on coTURN below v4.5.1.0!
|
# -p 49152-65535:49152-65535/udp
|
||||||
|
9
roles/docker-turn-server/templates/turnserver.conf.j2
Normal file
9
roles/docker-turn-server/templates/turnserver.conf.j2
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
listening-port=3478
|
||||||
|
fingerprint
|
||||||
|
use-auth-secret
|
||||||
|
static-auth-secret={{turn_server_secret}}
|
||||||
|
realm={{turn_server_domain}}
|
||||||
|
total-quota=100
|
||||||
|
bps-capacity=0
|
||||||
|
stale-nonce
|
||||||
|
no-multicast-peers
|
Loading…
Reference in New Issue
Block a user