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.
 
 

283 lines
15 KiB

  1. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2024 wjbeckett
  3. # SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. # Project source code URL: https://github.com/livekit/livekit
  8. livekit_server_enabled: false
  9. livekit_server_identifier: livekit-server
  10. livekit_server_uid: ''
  11. livekit_server_gid: ''
  12. livekit_server_base_path: "/{{ livekit_server_identifier }}"
  13. livekit_server_config_path: "{{ livekit_server_base_path }}/config"
  14. # renovate: datasource=docker depName=docker.io/livekit/livekit-server
  15. livekit_server_version: v1.8.4
  16. livekit_server_scheme: https
  17. livekit_server_hostname: ""
  18. livekit_server_path_prefix: /
  19. livekit_server_container_network: "{{ livekit_server_identifier }}"
  20. livekit_server_container_additional_networks: "{{ livekit_server_container_additional_networks_auto + livekit_server_container_additional_networks_custom }}"
  21. livekit_server_container_additional_networks_auto: []
  22. livekit_server_container_additional_networks_custom: []
  23. # Controls whether the LiveKit Server container exposes its RTC ports and which interface to do it on.
  24. #
  25. # Takes an interface "<ip address>" (e.g. "127.0.0.1"), or empty string to listen on all interfaces.
  26. # Takes a null/none value (`~`) or 'none' (as a string) to prevent listening.
  27. livekit_server_container_rtc_listen_interface: "{{ '' if livekit_server_container_network != 'host' else 'none' }}"
  28. # Controls whether the LiveKit Server container exposes its TURN ports and which interface to do it on.
  29. #
  30. # Takes an interface "<ip address>" (e.g. "127.0.0.1"), or empty string to listen on all interfaces.
  31. # Takes a null/none value (`~`) or 'none' (as a string) to prevent listening.
  32. livekit_server_container_turn_listen_interface: "{{ '' if livekit_server_container_network != 'host' else 'none' }}"
  33. livekit_server_container_image_self_build: false
  34. livekit_server_container_repo: "https://github.com/livekit/livekit.git"
  35. livekit_server_container_repo_version: "{{ 'main' if livekit_server_version == 'latest' else livekit_server_version }}"
  36. livekit_server_container_src_files_path: "{{ livekit_server_base_path }}/container-src"
  37. livekit_server_container_image: "{{ livekit_server_container_image_registry_prefix }}livekit/livekit-server:{{ livekit_server_version }}"
  38. livekit_server_container_image_registry_prefix: "{{ 'localhost/' if livekit_server_container_image_self_build else livekit_server_container_image_registry_prefix_upstream }}"
  39. livekit_server_container_image_registry_prefix_upstream: "{{ livekit_server_container_image_registry_prefix_upstream_default }}"
  40. livekit_server_container_image_registry_prefix_upstream_default: docker.io/
  41. livekit_server_container_image_force_pull: "{{ livekit_server_container_image.endswith(':latest') }}"
  42. livekit_server_container_labels_traefik_enabled: true
  43. livekit_server_container_labels_traefik_docker_network: "{{ livekit_server_container_network }}"
  44. livekit_server_container_labels_traefik_hostname: "{{ livekit_server_hostname }}"
  45. # The path prefix must either be `/` or not end with a slash (e.g. `/element`).
  46. livekit_server_container_labels_traefik_path_prefix: "{{ livekit_server_path_prefix }}"
  47. livekit_server_container_labels_traefik_rule: "Host(`{{ livekit_server_container_labels_traefik_hostname }}`){% if livekit_server_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ livekit_server_container_labels_traefik_path_prefix }}`){% endif %}"
  48. livekit_server_container_labels_traefik_priority: 0
  49. livekit_server_container_labels_traefik_entrypoints: web-secure
  50. livekit_server_container_labels_traefik_tls: "{{ livekit_server_container_labels_traefik_entrypoints != 'web' }}"
  51. livekit_server_container_labels_traefik_tls_certResolver: default # noqa var-naming
  52. # Controls which additional headers to attach to all HTTP responses.
  53. # To add your own headers, use `livekit_server_container_labels_traefik_additional_response_headers_custom`
  54. livekit_server_container_labels_traefik_additional_response_headers: "{{ livekit_server_container_labels_traefik_additional_response_headers_auto | combine(livekit_server_container_labels_traefik_additional_response_headers_custom) }}"
  55. livekit_server_container_labels_traefik_additional_response_headers_auto: |
  56. {{
  57. {}
  58. | combine ({'X-XSS-Protection': livekit_server_http_header_xss_protection} if livekit_server_http_header_xss_protection else {})
  59. | combine ({'X-Frame-Options': livekit_server_http_header_frame_options} if livekit_server_http_header_frame_options else {})
  60. | combine ({'X-Content-Type-Options': livekit_server_http_header_content_type_options} if livekit_server_http_header_content_type_options else {})
  61. | combine ({'Content-Security-Policy': livekit_server_http_header_content_security_policy} if livekit_server_http_header_content_security_policy else {})
  62. | combine ({'Permission-Policy': livekit_server_http_header_content_permission_policy} if livekit_server_http_header_content_permission_policy else {})
  63. | combine ({'Strict-Transport-Security': livekit_server_http_header_strict_transport_security} if livekit_server_http_header_strict_transport_security and livekit_server_container_labels_traefik_tls else {})
  64. }}
  65. livekit_server_container_labels_traefik_additional_response_headers_custom: {}
  66. # livekit_server_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  67. # See `../templates/labels.j2` for details.
  68. #
  69. # Example:
  70. # livekit_server_container_labels_additional_labels: |
  71. # my.label=1
  72. # another.label="here"
  73. livekit_server_container_labels_additional_labels: ''
  74. # A list of extra arguments to pass to the container
  75. livekit_server_container_extra_arguments: []
  76. # List of systemd services that LiveKit Server service depends on
  77. livekit_server_systemd_required_services_list: "{{ livekit_server_systemd_required_services_list_default + livekit_server_systemd_required_services_list_auto + livekit_server_systemd_required_services_list_custom }}"
  78. livekit_server_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  79. livekit_server_systemd_required_services_list_auto: []
  80. livekit_server_systemd_required_services_list_custom: []
  81. # Specifies the value of the `X-XSS-Protection` header
  82. # Stops pages from loading when they detect reflected cross-site scripting (XSS) attacks.
  83. #
  84. # Learn more about it is here:
  85. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
  86. # - https://portswigger.net/web-security/cross-site-scripting/reflected
  87. livekit_server_http_header_xss_protection: ''
  88. # Specifies the value of the `X-Frame-Options` header which controls whether framing can happen.
  89. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
  90. livekit_server_http_header_frame_options: ''
  91. # Specifies the value of the `X-Content-Type-Options` header.
  92. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
  93. livekit_server_http_header_content_type_options: ''
  94. # Specifies the value of the `Content-Security-Policy` header.
  95. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
  96. livekit_server_http_header_content_security_policy: ''
  97. # Specifies the value of the `Permission-Policy` header.
  98. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permission-Policy
  99. livekit_server_http_header_content_permission_policy: ''
  100. # Specifies the value of the `Strict-Transport-Security` header.
  101. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  102. livekit_server_http_header_strict_transport_security: ''
  103. # Controls whether to send a "Permissions-Policy interest-cohort=();" header along with all responses
  104. #
  105. # Learn more about what it is here:
  106. # - https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea
  107. # - https://paramdeo.com/blog/opting-your-website-out-of-googles-floc-network
  108. # - https://amifloced.org/
  109. #
  110. # Of course, a better solution is to just stop using browsers (like Chrome), which participate in such tracking practices.
  111. # See: `livekit_server_content_permission_policy`
  112. livekit_server_floc_optout_enabled: false
  113. # Controls if HSTS preloading is enabled
  114. #
  115. # In its strongest and recommended form, the [HSTS policy](https://www.chromium.org/hsts) includes all subdomains, and
  116. # indicates a willingness to be "preloaded" into browsers:
  117. # `Strict-Transport-Security: max-age=31536000; includeSubDomains; preload`
  118. # For more information visit:
  119. # - https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
  120. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  121. # - https://hstspreload.org/#opt-in
  122. # See: `livekit_server_http_header_strict_transport_security`
  123. livekit_server_hsts_preload_enabled: true
  124. # Holds the final LiveKit Server configuration (a combination of the default and its extension).
  125. # You most likely don't need to touch this variable. Instead, see `livekit_server_configuration_yaml` or `livekit_server_configuration_extension_yaml`.
  126. livekit_server_configuration: "{{ livekit_server_configuration_yaml | from_yaml | combine(livekit_server_configuration_extension, recursive=True) }}"
  127. # Default LiveKit Server configuration template which covers the generic use case.
  128. # You can customize it by controlling the various variables inside it.
  129. #
  130. # For a more advanced customization, you can extend the default (see `livekit_server_configuration_extension_yaml`)
  131. # or completely replace this variable with your own template.
  132. livekit_server_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  133. livekit_server_configuration_extension_yaml: |
  134. # Your custom YAML configuration for LiveKit Server goes here.
  135. # This configuration extends the default starting configuration (`livekit_server_configuration_yaml`).
  136. #
  137. # You can override individual variables from the default configuration, or introduce new ones.
  138. #
  139. # If you need something more special, you can take full control by
  140. # completely redefining `livekit_server_configuration_yaml`.
  141. #
  142. # Example configuration extension follows:
  143. #
  144. # logging:
  145. # level: debug
  146. livekit_server_configuration_extension: "{{ livekit_server_configuration_extension_yaml | from_yaml if livekit_server_configuration_extension_yaml | from_yaml is mapping else {} }}"
  147. # Controls the `port` configuration property.
  148. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  149. livekit_server_config_port: 7880
  150. ########################################################################################
  151. # #
  152. # RTC #
  153. # #
  154. ########################################################################################
  155. # Controls the `rtc.tcp_port` configuration property
  156. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  157. livekit_server_config_rtc_tcp_port: 7881
  158. # Controls the `rtc.port_range_start` configuration property.
  159. # This must be defined together with `livekit_server_config_rtc_port_range_end`,
  160. # or alternatively `livekit_server_config_rtc_udp_port` can be defined as a single port that handles all traffic.
  161. # Example: 50100
  162. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  163. livekit_server_config_rtc_port_range_start: ''
  164. # Controls the `rtc.port_range_end` configuration property.
  165. # This must be defined together with `livekit_server_config_rtc_port_range_start`,
  166. # or alternatively `livekit_server_config_rtc_udp_port` can be defined as a single port that handles all traffic.
  167. # Example: 50200
  168. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  169. livekit_server_config_rtc_port_range_end: ''
  170. # Controls the `rtc.udp_port` configuration property.
  171. # As an alternative to this, one may define both `livekit_server_config_rtc_port_range_start` and `livekit_server_config_rtc_port_range_end`.
  172. # Example: 7882
  173. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  174. livekit_server_config_rtc_udp_port: 7882
  175. # Controls the `rtc.use_external_ip` configuration property.
  176. # When set to true, attempts to discover the host's public IP via STUN.
  177. # This is useful for cloud environments such as AWS & Google where hosts have an internal IP that maps to an external one.
  178. livekit_server_config_rtc_use_external_ip: true
  179. ########################################################################################
  180. # #
  181. # /RTC #
  182. # #
  183. ########################################################################################
  184. ########################################################################################
  185. # #
  186. # TURN #
  187. # #
  188. ########################################################################################
  189. # Controls the `turn.enabled` configuration property.
  190. # When set to true, enables TURN server.
  191. livekit_server_config_turn_enabled: false
  192. # Controls the `turn.domain` configuration property.
  193. # Example: livekit.example.com
  194. livekit_server_config_turn_domain: "{{ livekit_server_hostname }}"
  195. # Controls the `turn.cert_file` configuration property.
  196. # Path to the TLS certificate file.
  197. livekit_server_config_turn_cert_file: ''
  198. # Controls the `turn.key_file` configuration property.
  199. # Path to the TLS key file.
  200. livekit_server_config_turn_key_file: ''
  201. # Controls the `turn.external_tls` configuration property.
  202. livekit_server_config_turn_external_tls: false
  203. # Controls the `turn.tls_port` configuration property.
  204. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  205. livekit_server_config_turn_tls_port: 5349
  206. # Controls the `turn.udp_port` configuration property.
  207. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  208. livekit_server_config_turn_udp_port: 3478
  209. ########################################################################################
  210. # #
  211. # /TURN #
  212. # #
  213. ########################################################################################
  214. # Controls the `keys` configuration property.
  215. livekit_server_config_keys: "{{ livekit_server_config_keys_auto | combine(livekit_server_config_keys_custom, recursive=True) }}"
  216. livekit_server_config_keys_auto: {}
  217. livekit_server_config_keys_custom: {}
  218. # Controls the `logging.level` configuration property.
  219. # Known values: debug, info, warn, error
  220. livekit_server_config_logging_level: info
  221. # Controls the `logging.pion_level` configuration property
  222. livekit_server_config_logging_pion_level: error
  223. # Controls the `logging.json` configuration property.
  224. # When set to true, emits json fields.
  225. livekit_server_config_logging_json: false
  226. # Controls the `logging.sample` configuration property.
  227. # For production setups, enables sampling algorithm.
  228. # See: https://github.com/uber-go/zap/blob/master/FAQ.md#why-sample-application-logs
  229. livekit_server_config_logging_sample: false