turn: acoplamos mejor signaling y janus
Ahora, signaling le pasa turn a janus.
This commit is contained in:
parent
1a711654a4
commit
0a2a152ac9
3 changed files with 14 additions and 9 deletions
|
@ -40,15 +40,9 @@ media: {
|
|||
}
|
||||
|
||||
nat: {
|
||||
stun_server = "{{ janus_stun_server_ip }}"
|
||||
stun_port = 3478
|
||||
|
||||
nice_debug = true
|
||||
|
||||
nice_debug = false
|
||||
full_trickle = true
|
||||
|
||||
turn_server = "{{ janus_turn_server_ip }}"
|
||||
turn_port = 3478
|
||||
turn_rest_api_key = "{{ signaling_apikey.stdout }}"
|
||||
}
|
||||
|
||||
plugins: {
|
||||
|
|
|
@ -42,6 +42,12 @@
|
|||
register: signaling_blockkey
|
||||
failed_when: signaling_blockkey.stdout | length != 32
|
||||
|
||||
- name: Register apikey
|
||||
ansible.builtin.shell:
|
||||
cmd: openssl rand -base64 32 | tr -cd '[A-Za-z0-9]' | cut -b 1-32
|
||||
register: signaling_apikey
|
||||
failed_when: signaling_apikey.stdout | length != 32
|
||||
|
||||
- name: Configure signaling-server
|
||||
block:
|
||||
- name: Create signaling-server system user
|
||||
|
|
|
@ -20,6 +20,11 @@ connectionsperhost = {{ signaling_connections_per_host }}
|
|||
url = https://{{ nextcloud_fqdn }}
|
||||
secret = {{ nextcloud_talk_signaling_server_secret }}
|
||||
|
||||
[turn]
|
||||
apikey = {{ signaling_apikey.stdout }}
|
||||
secret = {{ turn_static_auth_secret }}
|
||||
servers = turn:{{ turn_fqdn }}
|
||||
|
||||
[nats]
|
||||
# TODO: hay que cambiarlo cuando necesitemos replicar (más de un nodo)
|
||||
url = nats://127.0.0.1:4222
|
||||
|
@ -27,6 +32,6 @@ url = nats://127.0.0.1:4222
|
|||
[mcu]
|
||||
type = janus
|
||||
# TODO: hay que cambiarlo cuando necesitemos replicar (más de un nodo)
|
||||
url = ws://localhost:8188
|
||||
url = ws://127.0.0.1:8188
|
||||
skipverify = true
|
||||
|
||||
|
|
Loading…
Reference in a new issue