initial commit
This commit is contained in:
commit
13eace9ce9
219 files changed
+6918
No files matched your search
@@ -0,0 +1 @@
|
||||
TURNSERVER_ENABLED=1
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: restart coturn
|
||||
ansible.builtin.systemd_service:
|
||||
name: coturn
|
||||
state: restarted
|
||||
enabled: true
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
- name: install coturn
|
||||
ansible.builtin.apt:
|
||||
name: coturn
|
||||
state: latest
|
||||
update_cache: true
|
||||
notify: restart coturn
|
||||
|
||||
- name: ensure /var/lib/coturn/certs exists
|
||||
ansible.builtin.file:
|
||||
path: /var/lib/turn/certs
|
||||
owner: "turnserver"
|
||||
group: "turnserver"
|
||||
state: directory
|
||||
|
||||
- name: enable coturn daemon
|
||||
ansible.builtin.copy:
|
||||
src: coturn
|
||||
dest: /etc/default/coturn
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
notify: restart coturn
|
||||
|
||||
- name: deploy coturn config
|
||||
ansible.builtin.template:
|
||||
src: "{{ inventory_hostname }}/turnserver.conf.j2"
|
||||
dest: /etc/turnserver.conf
|
||||
owner: root
|
||||
group: turnserver
|
||||
mode: "0640"
|
||||
notify: restart coturn
|
||||
@@ -0,0 +1,29 @@
|
||||
listening-ip={{ ip }}
|
||||
external-ip={{ hostvars['liqueur'].ip }}/{{ ip }}
|
||||
listening-port=3478
|
||||
tls-listening-port=5349
|
||||
verbose
|
||||
min-port=49152
|
||||
max-port=65535
|
||||
fingerprint
|
||||
use-auth-secret
|
||||
static-auth-secret={{ turn_external_secret }}
|
||||
realm=oyacoi.ru
|
||||
cert=/var/lib/turn/certs/fullchain.pem
|
||||
pkey=/var/lib/turn/certs/privkey.pem
|
||||
prod
|
||||
no-multicast-peers
|
||||
no-cli
|
||||
no-tlsv1
|
||||
no-tlsv1_1
|
||||
no-rfc5780
|
||||
no-stun-backward-compatibility
|
||||
response-origin-only-with-rfc5780
|
||||
relay-ip={{ ip }}
|
||||
denied-peer-ip=10.0.0.0-10.255.255.255
|
||||
denied-peer-ip=172.16.0.0-172.31.255.255
|
||||
denied-peer-ip=192.168.0.0-192.168.255.255
|
||||
denied-peer-ip=0.0.0.0-0.255.255.255
|
||||
denied-peer-ip=100.64.0.0-100.127.255.255
|
||||
denied-peer-ip=169.254.0.0-169.254.255.255
|
||||
allowed-peer-ip={{ hostvars['prosody'].ip }}
|
||||
Reference in new issue
Block a user