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.
 
 

212 lines
12 KiB

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