소스 검색

Merge pull request #120 from Cadair/turn_config

Add config options to turnserver.conf
pull/126/head
Slavi Pantaleev 7 년 전
committed by GitHub
부모
커밋
0bc751261d
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
2개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. +4
    -0
      roles/matrix-coturn/defaults/main.yml
  2. +13
    -0
      roles/matrix-coturn/templates/turnserver.conf.j2

+ 4
- 0
roles/matrix-coturn/defaults/main.yml 파일 보기

@@ -17,3 +17,7 @@ matrix_coturn_turn_udp_min_port: 49152
matrix_coturn_turn_udp_max_port: 49172

matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"
matrix_coturn_allowed_peer_ips: []
matrix_coturn_denied_peer_ips: []
matrix_coturn_user_quota: null
matrix_coturn_total_quota: null

+ 13
- 0
roles/matrix-coturn/templates/turnserver.conf.j2 파일 보기

@@ -11,3 +11,16 @@ no-cli
no-tls
no-dtls
prod
no-tcp-relay
{% if matrix_coturn_user_quota != None %}
user-quota={{ matrix_coturn_user_quota }}
{% endif %}
{% if matrix_coturn_total_quota != None %}
total-quota={{ matrix_coturn_total_quota }}
{% endif %}
{% for ip_range in matrix_coturn_denied_peer_ips %}
denied-peer-ip={{ ip_range }}
{% endfor %}
{% for ip_range in matrix_coturn_allowed_peer_ips %}
allowed-peer-ip={{ ip_range }}
{% endfor %}

불러오는 중...
취소
저장