mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-31 15:48:57 +02:00
Updated turn-server configuration. Not functioning yet.
This commit is contained in:
8
roles/docker-turn-server/handlers/main.yml
Normal file
8
roles/docker-turn-server/handlers/main.yml
Normal 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
|
@@ -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
|
||||
|
@@ -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
|
||||
|
1
roles/docker-turn-server/vars/main.yml
Normal file
1
roles/docker-turn-server/vars/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
turn_server_listening_port: 3478
|
Reference in New Issue
Block a user