Преглед изворни кода

Multi-IP coturn

Add support for multiple external turn IP addresses, this allows for better comptability with dualstack ipv4/ipv6 hosts, and is supported as per the documentation (point 6 here: https://matrix-org.github.io/synapse/latest/turn-howto.html#configuration)
pull/1741/head
heftyzauk пре 4 година
committed by GitHub
родитељ
комит
29847627f1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 измењених фајлова са 5 додато и 3 уклоњено
  1. +1
    -1
      group_vars/matrix_servers
  2. +1
    -1
      roles/matrix-coturn/defaults/main.yml
  3. +3
    -1
      roles/matrix-coturn/templates/turnserver.conf.j2

+ 1
- 1
group_vars/matrix_servers Прегледај датотеку

@@ -1144,7 +1144,7 @@ matrix_coturn_enabled: true

matrix_coturn_container_image_self_build: "{{ matrix_architecture != 'amd64' }}"

matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"
matrix_coturn_turn_external_ip_address: ["{{ ansible_host }}"]

matrix_coturn_turn_static_auth_secret: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'coturn.sas') | to_uuid }}"



+ 1
- 1
roles/matrix-coturn/defaults/main.yml Прегледај датотеку

@@ -64,7 +64,7 @@ matrix_coturn_turn_udp_max_port: 49172
matrix_coturn_turn_static_auth_secret: ""

# The external IP address of the machine where Coturn is.
matrix_coturn_turn_external_ip_address: ''
matrix_coturn_turn_external_ip_address: []

matrix_coturn_allowed_peer_ips: []
matrix_coturn_denied_peer_ips: []


+ 3
- 1
roles/matrix-coturn/templates/turnserver.conf.j2 Прегледај датотеку

@@ -5,7 +5,9 @@ realm=turn.{{ matrix_server_fqn_matrix }}

min-port={{ matrix_coturn_turn_udp_min_port }}
max-port={{ matrix_coturn_turn_udp_max_port }}
external-ip={{ matrix_coturn_turn_external_ip_address }}
{% for ip in matrix_coturn_turn_external_ip_address %}
external-ip={{ ip }}
{% endfor %}

log-file=stdout
pidfile=/var/tmp/turnserver.pid


Loading…
Откажи
Сачувај