Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

129 lines
5.7 KiB

  1. ---
  2. # Project source code URL: https://github.com/coturn/coturn
  3. matrix_coturn_enabled: true
  4. matrix_coturn_container_image_self_build: false
  5. matrix_coturn_container_image_self_build_repo: "https://github.com/coturn/coturn"
  6. matrix_coturn_container_image_self_build_repo_version: "docker/{{ matrix_coturn_version }}"
  7. matrix_coturn_container_image_self_build_repo_dockerfile_path: "docker/coturn/alpine/Dockerfile"
  8. matrix_coturn_version: 4.6.1-r0
  9. matrix_coturn_docker_image: "{{ matrix_coturn_docker_image_name_prefix }}coturn/coturn:{{ matrix_coturn_version }}-alpine"
  10. matrix_coturn_docker_image_name_prefix: "{{ 'localhost/' if matrix_coturn_container_image_self_build else matrix_container_global_registry_prefix }}"
  11. matrix_coturn_docker_image_force_pull: "{{ matrix_coturn_docker_image.endswith(':latest') }}"
  12. # The Docker network that Coturn would be put into.
  13. #
  14. # Because Coturn relays traffic to unvalidated IP addresses,
  15. # using a dedicated network, isolated from other Docker (and local) services is preferrable.
  16. #
  17. # Setting up deny/allow rules with `matrix_coturn_allowed_peer_ips`/`matrix_coturn_denied_peer_ips` is also
  18. # possible for achieving such isolation, but is more complicated due to the dynamic nature of Docker networking.
  19. matrix_coturn_docker_network: "matrix-coturn"
  20. matrix_coturn_base_path: "{{ matrix_base_data_path }}/coturn"
  21. matrix_coturn_docker_src_files_path: "{{ matrix_coturn_base_path }}/docker-src"
  22. matrix_coturn_config_path: "{{ matrix_coturn_base_path }}/turnserver.conf"
  23. # List of systemd services that matrix-coturn.service depends on
  24. matrix_coturn_systemd_required_services_list: ['docker.service']
  25. # A list of additional "volumes" to mount in the container.
  26. # This list gets populated dynamically at runtime. You can provide a different default value,
  27. # if you wish to mount your own files into the container.
  28. # Contains definition objects like this: `{"src": "/outside", "dst": "/inside", "options": "rw|ro|slave|.."}
  29. matrix_coturn_container_additional_volumes: []
  30. # A list of extra arguments to pass to the container
  31. matrix_coturn_container_extra_arguments: []
  32. # Controls whether the Coturn container exposes its plain STUN port (tcp/3478 and udp/3478 in the container).
  33. #
  34. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:3478"), or empty string to not expose.
  35. matrix_coturn_container_stun_plain_host_bind_port: '3478'
  36. # Controls whether the Coturn container exposes its TLS STUN port (tcp/5349 and udp/5349 in the container).
  37. #
  38. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:5349"), or empty string to not expose.
  39. matrix_coturn_container_stun_tls_host_bind_port: '5349'
  40. # Controls whether the Coturn container exposes its TURN UDP port range and which interface to do it on.
  41. #
  42. # Takes an interface "<ip address>" (e.g. "127.0.0.1"), or empty string to listen on all interfaces.
  43. # Takes a null/none value (`~`) to prevent listening.
  44. #
  45. # The UDP port-range itself is specified using `matrix_coturn_turn_udp_min_port` and `matrix_coturn_turn_udp_max_port`.
  46. matrix_coturn_container_turn_range_listen_interface: ''
  47. # UDP port-range to use for TURN
  48. matrix_coturn_turn_udp_min_port: 49152
  49. matrix_coturn_turn_udp_max_port: 49172
  50. # A shared secret (between Synapse and Coturn) used for authentication.
  51. # You can put any string here, but generating a strong one is preferred (e.g. `pwgen -s 64 1`).
  52. matrix_coturn_turn_static_auth_secret: ""
  53. # The external IP address of the machine where Coturn is.
  54. matrix_coturn_turn_external_ip_address: ''
  55. matrix_coturn_turn_external_ip_addresses: ["{{ matrix_coturn_turn_external_ip_address }}"]
  56. matrix_coturn_allowed_peer_ips: []
  57. # We block loopback interfaces and private networks by default to prevent private resources from being accessible.
  58. # This is especially important when Coturn does not run within a container network (e.g. `matrix_coturn_docker_network: host`).
  59. #
  60. # Learn more: https://www.rtcsec.com/article/cve-2020-26262-bypass-of-coturns-access-control-protection/
  61. #
  62. # If you're running Coturn for local network peers, you may wish to override these rules.
  63. matrix_coturn_denied_peer_ips:
  64. - 0.0.0.0-0.255.255.255
  65. - 10.0.0.0-10.255.255.255
  66. - 100.64.0.0-100.127.255.255
  67. - 127.0.0.0-127.255.255.255
  68. - 169.254.0.0-169.254.255.255
  69. - 172.16.0.0-172.31.255.255
  70. - 192.0.0.0-192.0.0.255
  71. - 192.0.2.0-192.0.2.255
  72. - 192.88.99.0-192.88.99.255
  73. - 192.168.0.0-192.168.255.255
  74. - 198.18.0.0-198.19.255.255
  75. - 198.51.100.0-198.51.100.255
  76. - 203.0.113.0-203.0.113.255
  77. - 240.0.0.0-255.255.255.255
  78. - ::1
  79. - 64:ff9b::-64:ff9b::ffff:ffff
  80. - ::ffff:0.0.0.0-::ffff:255.255.255.255
  81. - 100::-100::ffff:ffff:ffff:ffff
  82. - 2001::-2001:1ff:ffff:ffff:ffff:ffff:ffff:ffff
  83. - 2002::-2002:ffff:ffff:ffff:ffff:ffff:ffff:ffff
  84. - fc00::-fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
  85. - fe80::-febf:ffff:ffff:ffff:ffff:ffff:ffff:ffff
  86. matrix_coturn_user_quota: null
  87. matrix_coturn_total_quota: null
  88. # Controls whether `no-tcp-relay` is added to the configuration
  89. matrix_coturn_no_tcp_relay_enabled: true
  90. # Controls whether `no-multicast-peers` is added to the configuration
  91. matrix_coturn_no_multicast_peers_enabled: true
  92. # Additional configuration to be passed to turnserver.conf
  93. # Example:
  94. # matrix_coturn_additional_configuration: |
  95. # simple-log
  96. # aux-server=1.2.3.4
  97. # relay-ip=4.3.2.1
  98. matrix_coturn_additional_configuration: ''
  99. # To enable TLS, you need to provide paths to certificates.
  100. # Paths defined in `matrix_coturn_tls_cert_path` and `matrix_coturn_tls_key_path` are in-container paths.
  101. # Files on the host can be mounted into the container using `matrix_coturn_container_additional_volumes`.
  102. matrix_coturn_tls_enabled: false
  103. matrix_coturn_tls_cert_path: ~
  104. matrix_coturn_tls_key_path: ~
  105. matrix_coturn_tls_v1_enabled: false
  106. matrix_coturn_tls_v1_1_enabled: false