Add defaults for ips

This commit is contained in:
Stuart Mumford 2019-03-18 11:44:40 +00:00
parent c0dc56324a
commit 9d236c5466
No known key found for this signature in database
GPG Key ID: 60BC5C03E6276769
2 changed files with 2 additions and 4 deletions

View File

@ -17,3 +17,5 @@ matrix_coturn_turn_udp_min_port: 49152
matrix_coturn_turn_udp_max_port: 49172 matrix_coturn_turn_udp_max_port: 49172
matrix_coturn_turn_external_ip_address: "{{ ansible_host }}" matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"
matrix_coturn_allowed_peer_ips: []
matrix_coturn_denied_peer_ips: []

View File

@ -18,13 +18,9 @@ user-quota={{ matrix_coturn_user_quota }}
{% if matrix_coturn_total_quota is defined %} {% if matrix_coturn_total_quota is defined %}
total-quota={{ matrix_coturn_total_quota }} total-quota={{ matrix_coturn_total_quota }}
{% endif %} {% endif %}
{% if matrix_coturn_denied_peer_ips is defined %}
{% for ip_range in matrix_coturn_denied_peer_ips %} {% for ip_range in matrix_coturn_denied_peer_ips %}
denied-peer-ip={{ ip_range }} denied-peer-ip={{ ip_range }}
{% endfor %} {% endfor %}
{% endif %}
{% if matrix_coturn_allowed_peer_ips is defined %}
{% for ip_range in matrix_coturn_allowed_peer_ips %} {% for ip_range in matrix_coturn_allowed_peer_ips %}
allowed-peer-ip={{ ip_range }} allowed-peer-ip={{ ip_range }}
{% endfor %} {% endfor %}
{% endif %}