Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

168 řádky
9.1 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.2-r5
  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. #
  20. # Setting `matrix_coturn_docker_network` to 'host' will run the container with host networking,
  21. # which will drastically improve performance when thousands of ports are opened due to Docker not having to set up forwarding rules for each port.
  22. # Running with host networking can be dangerous, as it potentially exposes your local network and its services to Coturn peers.
  23. # Regardless of the networking mode, we apply a deny list which via `matrix_coturn_denied_peer_ips`,
  24. # which hopefully prevents access to such private network ranges.
  25. # When running in host-networking mode, you need to adjust the firewall yourself, so that ports are opened.
  26. matrix_coturn_docker_network: "matrix-coturn"
  27. matrix_coturn_base_path: "{{ matrix_base_data_path }}/coturn"
  28. matrix_coturn_docker_src_files_path: "{{ matrix_coturn_base_path }}/docker-src"
  29. matrix_coturn_config_path: "{{ matrix_coturn_base_path }}/turnserver.conf"
  30. # List of systemd services that matrix-coturn.service depends on
  31. matrix_coturn_systemd_required_services_list: ['docker.service']
  32. # A list of additional "volumes" to mount in the container.
  33. # This list gets populated dynamically at runtime. You can provide a different default value,
  34. # if you wish to mount your own files into the container.
  35. # Contains definition objects like this: `{"type": "bind", "src": "/outside", "dst": "/inside", "options": "readonly"}.
  36. # See the `--mount` documentation for the `docker run` command.
  37. matrix_coturn_container_additional_volumes: []
  38. # A list of extra arguments to pass to the container
  39. matrix_coturn_container_extra_arguments: []
  40. # Controls whether the Coturn container exposes its plain STUN port (tcp/3478 and udp/3478 in the container).
  41. #
  42. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:3478"), or empty string to not expose.
  43. matrix_coturn_container_stun_plain_host_bind_port: "{{ '3478' if matrix_coturn_docker_network != 'host' else '' }}"
  44. # Controls whether the Coturn container exposes its TLS STUN port (tcp/5349 and udp/5349 in the container).
  45. #
  46. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:5349"), or empty string to not expose.
  47. matrix_coturn_container_stun_tls_host_bind_port: "{{ '5349' if matrix_coturn_docker_network != 'host' else '' }}"
  48. # Controls whether the Coturn container exposes its TURN UDP port range and which interface to do it on.
  49. #
  50. # Takes an interface "<ip address>" (e.g. "127.0.0.1"), or empty string to listen on all interfaces.
  51. # Takes a null/none value (`~`) or 'none' (as a string) to prevent listening.
  52. #
  53. # The UDP port-range itself is specified using `matrix_coturn_turn_udp_min_port` and `matrix_coturn_turn_udp_max_port`.
  54. matrix_coturn_container_turn_range_listen_interface: "{{ '' if matrix_coturn_docker_network != 'host' else 'none' }}"
  55. # UDP port-range to use for TURN
  56. matrix_coturn_turn_udp_min_port: 49152
  57. matrix_coturn_turn_udp_max_port: 49172
  58. # A shared secret (between Synapse and Coturn) used for authentication.
  59. # You can put any string here, but generating a strong one is preferred (e.g. `pwgen -s 64 1`).
  60. matrix_coturn_turn_static_auth_secret: ""
  61. # The external IP address of the machine where Coturn is.
  62. # If do not define an IP address here or in `matrix_coturn_turn_external_ip_addresses`, auto-detection via an EchoIP service will be done.
  63. # See `matrix_coturn_turn_external_ip_address_auto_detection_enabled`
  64. matrix_coturn_turn_external_ip_address: ''
  65. matrix_coturn_turn_external_ip_addresses: "{{ [matrix_coturn_turn_external_ip_address] if matrix_coturn_turn_external_ip_address != '' else [] }}"
  66. # Controls whether external IP address auto-detection should be attempted.
  67. # We try to do this if there is no external IP address explicitly configured and if an EchoIP service URL is specified.
  68. # See matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_url
  69. matrix_coturn_turn_external_ip_address_auto_detection_enabled: "{{ matrix_coturn_turn_external_ip_addresses | length == 0 and matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_url != '' }}"
  70. # Specifies the address of the EchoIP service (https://github.com/mpolden/echoip) to use for detecting the external IP address.
  71. # By default, we use the official public instance.
  72. matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_url: https://ifconfig.co/json
  73. # Controls whether SSL certificates will be validated when contacting the EchoIP service (matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_url)
  74. matrix_coturn_turn_external_ip_address_auto_detection_echoip_validate_certs: true
  75. matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_retries_count: "{{ devture_playbook_help_geturl_retries_count }}"
  76. matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_retries_delay: "{{ devture_playbook_help_geturl_retries_delay }}"
  77. matrix_coturn_allowed_peer_ips: []
  78. # We block loopback interfaces and private networks by default to prevent private resources from being accessible.
  79. # This is especially important when Coturn does not run within a container network (e.g. `matrix_coturn_docker_network: host`).
  80. #
  81. # Learn more: https://www.rtcsec.com/article/cve-2020-26262-bypass-of-coturns-access-control-protection/
  82. #
  83. # If you're running Coturn for local network peers, you may wish to override these rules.
  84. matrix_coturn_denied_peer_ips:
  85. - 0.0.0.0-0.255.255.255
  86. - 10.0.0.0-10.255.255.255
  87. - 100.64.0.0-100.127.255.255
  88. - 127.0.0.0-127.255.255.255
  89. - 169.254.0.0-169.254.255.255
  90. - 172.16.0.0-172.31.255.255
  91. - 192.0.0.0-192.0.0.255
  92. - 192.0.2.0-192.0.2.255
  93. - 192.88.99.0-192.88.99.255
  94. - 192.168.0.0-192.168.255.255
  95. - 198.18.0.0-198.19.255.255
  96. - 198.51.100.0-198.51.100.255
  97. - 203.0.113.0-203.0.113.255
  98. - 240.0.0.0-255.255.255.255
  99. - ::1
  100. - 64:ff9b::-64:ff9b::ffff:ffff
  101. - ::ffff:0.0.0.0-::ffff:255.255.255.255
  102. - 100::-100::ffff:ffff:ffff:ffff
  103. - 2001::-2001:1ff:ffff:ffff:ffff:ffff:ffff:ffff
  104. - 2002::-2002:ffff:ffff:ffff:ffff:ffff:ffff:ffff
  105. - fc00::-fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
  106. - fe80::-febf:ffff:ffff:ffff:ffff:ffff:ffff:ffff
  107. matrix_coturn_user_quota: null
  108. matrix_coturn_total_quota: null
  109. # Controls whether `no-tcp-relay` is added to the configuration
  110. # Learn more here: https://github.com/coturn/coturn/blob/242eb78227f66442ba1573c00ec4552faae23eed/examples/etc/turnserver.conf#L419-L422
  111. matrix_coturn_no_tcp_relay_enabled: true
  112. # Controls whether `no-multicast-peers` is added to the configuration
  113. # Learn more here: https://github.com/coturn/coturn/blob/242eb78227f66442ba1573c00ec4552faae23eed/examples/etc/turnserver.conf#L629-L632
  114. matrix_coturn_no_multicast_peers_enabled: true
  115. # Controls whether `no-rfc5780` is added to the configuration
  116. # Learn more here: https://github.com/coturn/coturn/blob/242eb78227f66442ba1573c00ec4552faae23eed/examples/etc/turnserver.conf#L770-L781
  117. matrix_coturn_no_rfc5780_enabled: true
  118. # Controls whether `no-stun-backward-compatibility` is added to the configuration
  119. # Learn more here: https://github.com/coturn/coturn/blob/242eb78227f66442ba1573c00ec4552faae23eed/examples/etc/turnserver.conf#L783-L789
  120. matrix_coturn_no_stun_backward_compatibility_enabled: true
  121. # Controls whether `response-origin-only-with-rfc5780` is added to the configuration
  122. # Learn more here: https://github.com/coturn/coturn/blob/242eb78227f66442ba1573c00ec4552faae23eed/examples/etc/turnserver.conf#L791-L796
  123. matrix_coturn_response_origin_only_with_rfc5780_enabled: true
  124. # Additional configuration to be passed to turnserver.conf
  125. # Example:
  126. # matrix_coturn_additional_configuration: |
  127. # simple-log
  128. # aux-server=1.2.3.4
  129. # relay-ip=4.3.2.1
  130. matrix_coturn_additional_configuration: ''
  131. # To enable TLS, you need to provide paths to certificates.
  132. # Paths defined in `matrix_coturn_tls_cert_path` and `matrix_coturn_tls_key_path` are in-container paths.
  133. # Files on the host can be mounted into the container using `matrix_coturn_container_additional_volumes`.
  134. matrix_coturn_tls_enabled: false
  135. matrix_coturn_tls_cert_path: ~
  136. matrix_coturn_tls_key_path: ~
  137. matrix_coturn_tls_v1_enabled: false
  138. matrix_coturn_tls_v1_1_enabled: false