Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

445 lines
26 KiB

  1. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2024 wjbeckett
  3. # SPDX-FileCopyrightText: 2024, 2025 Slavi Pantaleev
  4. # SPDX-FileCopyrightText: 2025, 2026 Suguru Hirahara
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. # Project source code URL: https://github.com/livekit/livekit
  9. livekit_server_enabled: false
  10. livekit_server_identifier: livekit-server
  11. livekit_server_base_path: "/{{ livekit_server_identifier }}"
  12. livekit_server_config_path: "{{ livekit_server_base_path }}/config"
  13. # renovate: datasource=docker depName=docker.io/livekit/livekit-server
  14. livekit_server_version: v1.9.11
  15. livekit_server_uid: ""
  16. livekit_server_gid: ""
  17. # The scheme used for serving LiveKit Server.
  18. livekit_server_scheme: https
  19. # The hostname at which LiveKit Server is served.
  20. livekit_server_hostname: ""
  21. # The path at which LiveKit Server is served.
  22. livekit_server_path_prefix: /
  23. livekit_server_container_image: "{{ livekit_server_container_image_registry_prefix }}livekit/livekit-server:{{ livekit_server_version }}"
  24. livekit_server_container_image_registry_prefix: "{{ 'localhost/' if livekit_server_container_image_self_build else livekit_server_container_image_registry_prefix_upstream }}"
  25. livekit_server_container_image_registry_prefix_upstream: "{{ livekit_server_container_image_registry_prefix_upstream_default }}"
  26. livekit_server_container_image_registry_prefix_upstream_default: docker.io/
  27. livekit_server_container_image_force_pull: "{{ livekit_server_container_image.endswith(':latest') }}"
  28. livekit_server_container_image_self_build: false
  29. livekit_server_container_image_self_build_name: "livekit/livekit:{{ livekit_server_container_image_self_build_repo_version }}"
  30. livekit_server_container_image_self_build_repo: "https://github.com/livekit/livekit.git"
  31. livekit_server_container_image_self_build_repo_version: "{{ livekit_server_version if livekit_server_version != 'latest' else 'main' }}"
  32. livekit_server_container_image_self_build_src_files_path: "{{ livekit_server_base_path }}/docker-src"
  33. # The base container network. It will be auto-created by this role if it doesn't exist already.
  34. livekit_server_container_network: "{{ livekit_server_identifier }}"
  35. # Controls whether to publish the HTTP port (livekit_server_config_port / 7880) on the host.
  36. # Useful when a reverse proxy (e.g. nginx) runs on the host rather than in a container network.
  37. # Accepts: "<ip>:<host_port>" (e.g. "192.168.90.83:7880"), "<host_port>" (e.g. "7880"),
  38. # or empty string "" to skip publishing this port.
  39. livekit_server_container_http_host_bind_port: ""
  40. # Specify how the container publishes its RTC port 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 (`~`) or 'none' (as a string) to prevent listening.
  44. livekit_server_container_rtc_listen_interface: "{{ '' if livekit_server_container_network != 'host' else 'none' }}"
  45. # Specify how the container publishes its TURN port and which interface to do it on.
  46. #
  47. # Takes an interface "<ip address>" (e.g. "127.0.0.1"), or empty string to listen on all interfaces.
  48. # Takes a null/none value (`~`) or 'none' (as a string) to prevent listening.
  49. livekit_server_container_turn_listen_interface: "{{ '' if livekit_server_container_network != 'host' else 'none' }}"
  50. # Specify how the container publishes its metrics and which interface to do it on.
  51. #
  52. # Takes an interface "<ip address>" (e.g. "127.0.0.1"), or empty string to listen on all interfaces.
  53. # Takes a null/none value (`~`) or 'none' (as a string) to prevent listening.
  54. # See `livekit_server_config_prometheus_port`.
  55. livekit_server_container_metrics_listen_interface: ~
  56. # A list of additional container networks that the container would be connected to.
  57. # The role does not create these networks, so make sure they already exist.
  58. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  59. livekit_server_container_additional_networks: "{{ livekit_server_container_additional_networks_auto + livekit_server_container_additional_networks_custom }}"
  60. livekit_server_container_additional_networks_auto: []
  61. livekit_server_container_additional_networks_custom: []
  62. # A list of additional "volumes" to mount in the container.
  63. # This list gets populated dynamically at runtime. You can provide a different default value,
  64. # if you wish to mount your own files into the container.
  65. # Contains definition objects like this: `{"type": "bind", "src": "/outside", "dst": "/inside", "options": "readonly"}.
  66. # See the `--mount` documentation for the `docker run` command.
  67. livekit_server_container_additional_volumes: "{{ livekit_server_container_additional_volumes_auto + livekit_server_container_additional_volumes_custom }}"
  68. livekit_server_container_additional_volumes_auto: []
  69. livekit_server_container_additional_volumes_custom: []
  70. # livekit_server_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  71. # See `../templates/labels.j2` for details.
  72. #
  73. # To inject your own other container labels, see `livekit_server_container_labels_additional_labels_custom`.
  74. livekit_server_container_labels_traefik_enabled: true
  75. livekit_server_container_labels_traefik_docker_network: "{{ livekit_server_container_network }}"
  76. livekit_server_container_labels_traefik_hostname: "{{ livekit_server_hostname }}"
  77. # The path prefix must either be `/` or not end with a slash (e.g. `/element`).
  78. livekit_server_container_labels_traefik_path_prefix: "{{ livekit_server_path_prefix }}"
  79. 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 %}"
  80. livekit_server_container_labels_traefik_priority: 0
  81. livekit_server_container_labels_traefik_entrypoints: web-secure
  82. livekit_server_container_labels_traefik_tls: "{{ livekit_server_container_labels_traefik_entrypoints != 'web' }}"
  83. livekit_server_container_labels_traefik_tls_certResolver: default # noqa var-naming
  84. # Controls whether labels will be added that expose metrics (see `livekit_server_metrics_proxying_enabled`)
  85. livekit_server_container_labels_public_metrics_enabled: "{{ livekit_server_config_prometheus_enabled and livekit_server_metrics_proxying_enabled }}"
  86. livekit_server_container_labels_public_metrics_traefik_path: "{{ livekit_server_metrics_proxying_path }}"
  87. livekit_server_container_labels_public_metrics_traefik_rule: "Host(`{{ livekit_server_metrics_proxying_hostname }}`) && Path(`{{ livekit_server_container_labels_public_metrics_traefik_path }}`)"
  88. livekit_server_container_labels_public_metrics_traefik_priority: 0
  89. livekit_server_container_labels_public_metrics_traefik_entrypoints: "{{ livekit_server_container_labels_traefik_entrypoints }}"
  90. livekit_server_container_labels_public_metrics_traefik_tls: "{{ livekit_server_container_labels_traefik_tls }}"
  91. livekit_server_container_labels_public_metrics_traefik_tls_certResolver: "{{ livekit_server_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  92. livekit_server_container_labels_public_metrics_middleware_basic_auth_enabled: false
  93. # See: https://doc.traefik.io/traefik/reference/routing-configuration/http/middlewares/basicauth/
  94. livekit_server_container_labels_public_metrics_middleware_basic_auth_users: ""
  95. # livekit_server_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  96. # See `../templates/labels.j2` for details.
  97. # To add your own custom labels, use `livekit_server_container_labels_additional_labels_custom`
  98. #
  99. # Example:
  100. # livekit_server_container_labels_additional_labels_custom:
  101. # - my.label=1
  102. # - another.label="here"
  103. livekit_server_container_labels_additional_labels: "{{ livekit_server_container_labels_additional_labels_auto + livekit_server_container_labels_additional_labels_custom }}"
  104. livekit_server_container_labels_additional_labels_auto: []
  105. livekit_server_container_labels_additional_labels_custom: []
  106. # A list of extra arguments to pass to the container (`docker create` command)
  107. livekit_server_container_extra_arguments: "{{ livekit_server_container_extra_arguments_auto + livekit_server_container_extra_arguments_custom }}"
  108. livekit_server_container_extra_arguments_auto: []
  109. livekit_server_container_extra_arguments_custom: []
  110. # Specifies the maximum size of the socket receive buffer (`net.core.rmem_max`) kernel parameter on the host (which will cascade into the container) to at least this value.
  111. # If the host uses a larger value, this will be ignored.
  112. #
  113. # We intentionally increase these buffers to 7.5MB, to LiveKit Server happy.
  114. # It may otherwise report something like:
  115. # > rtcconfig/rtc_unix.go:31 UDP receive buffer is too small for a production set-up {"current": 425984, "suggested": 5000000}
  116. #
  117. #
  118. # The reason we apply this at the host level, not via `docker run --sysctl` is that
  119. # the `docker run --sysctl` option doesn't seem to work here (likely because it's Alpine in the container or something):
  120. # > Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: open /proc/sys/net/core/rmem_max: permission denied
  121. # This same error is produced even if the container is started as root, with all capabilities, and `--privileged`, etc.
  122. #
  123. # If this is blank, no sysctl changes will be made.
  124. livekit_server_host_sysctl_minimum_net_core_rmem_max: 7500000
  125. # Specifies the maximum size of the socket send buffer (`net.core.wmem_max`) kernel parameter on the host (which will cascade into the container) to at least this value.
  126. # If the host uses a larger value, this will be ignored.
  127. #
  128. # See the comment for `livekit_server_host_sysctl_minimum_net_core_rmem_max` for more details
  129. # about why we need to increase these buffers.
  130. #
  131. # If this is blank, no sysctl changes will be made.
  132. livekit_server_host_sysctl_minimum_net_core_wmem_max: 7500000
  133. # List of systemd services that the LiveKit Server service depends on
  134. 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 }}"
  135. livekit_server_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  136. livekit_server_systemd_required_services_list_auto: []
  137. livekit_server_systemd_required_services_list_custom: []
  138. # List of systemd services that the LiveKit Server systemd service wants
  139. livekit_server_systemd_wanted_services_list: "{{ livekit_server_systemd_wanted_services_list_default + livekit_server_systemd_wanted_services_list_auto + livekit_server_systemd_wanted_services_list_custom }}"
  140. livekit_server_systemd_wanted_services_list_default: []
  141. livekit_server_systemd_wanted_services_list_auto: []
  142. livekit_server_systemd_wanted_services_list_custom: []
  143. # Holds the final LiveKit Server configuration (a combination of the default and its extension).
  144. # You most likely don't need to touch this variable. Instead, see `livekit_server_configuration_yaml` or `livekit_server_configuration_extension_yaml`.
  145. livekit_server_configuration: "{{ livekit_server_configuration_yaml | from_yaml | combine(livekit_server_configuration_extension, recursive=True) }}"
  146. # Default LiveKit Server configuration template which covers the generic use case.
  147. # You can customize it by controlling the various variables inside it.
  148. #
  149. # For a more advanced customization, you can extend the default (see `livekit_server_configuration_extension_yaml`)
  150. # or completely replace this variable with your own template.
  151. livekit_server_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  152. livekit_server_configuration_extension_yaml: |
  153. # Your custom YAML configuration for LiveKit Server goes here.
  154. # This configuration extends the default starting configuration (`livekit_server_configuration_yaml`).
  155. #
  156. # You can override individual variables from the default configuration, or introduce new ones.
  157. #
  158. # If you need something more special, you can take full control by
  159. # completely redefining `livekit_server_configuration_yaml`.
  160. #
  161. # Example configuration extension follows:
  162. #
  163. # logging:
  164. # level: debug
  165. livekit_server_configuration_extension: "{{ livekit_server_configuration_extension_yaml | from_yaml if livekit_server_configuration_extension_yaml | from_yaml is mapping else {} }}"
  166. # Controls the `port` configuration property.
  167. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  168. livekit_server_config_port: 7880
  169. # Controls the `bind_addresses` configuration property.
  170. livekit_server_config_bind_addresses: ["::"]
  171. # Specify the timezone
  172. livekit_server_environment_variables_tz: UTC
  173. # Additional environment variables.
  174. livekit_server_environment_variables_additional_variables: ""
  175. ########################################################################################
  176. # #
  177. # Room #
  178. # #
  179. ########################################################################################
  180. # Controls the `room.auto_create` configuration property.
  181. # (Allow rooms to be automatically created when participants join).
  182. #
  183. # This defaults to true based on upstream defaults.
  184. # Ref: https://github.com/livekit/livekit/blob/5e483e7554e5afbf254acf84e3ec0aa6e108e758/config-sample.yaml#L168-L170
  185. livekit_server_config_room_auto_create: true
  186. ########################################################################################
  187. # #
  188. # /Room #
  189. # #
  190. ########################################################################################
  191. ########################################################################################
  192. # #
  193. # RTC #
  194. # #
  195. ########################################################################################
  196. # Controls the `rtc.tcp_port` configuration property
  197. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  198. livekit_server_config_rtc_tcp_port: 7881
  199. # Controls the `rtc.port_range_start` configuration property.
  200. # This must be defined together with `livekit_server_config_rtc_port_range_end`,
  201. # or alternatively `livekit_server_config_rtc_udp_port` can be defined as a single port that handles all traffic.
  202. # Example: 50100
  203. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  204. livekit_server_config_rtc_port_range_start: ""
  205. # Controls the `rtc.port_range_end` configuration property.
  206. # This must be defined together with `livekit_server_config_rtc_port_range_start`,
  207. # or alternatively `livekit_server_config_rtc_udp_port` can be defined as a single port that handles all traffic.
  208. # Example: 50200
  209. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  210. livekit_server_config_rtc_port_range_end: ""
  211. # Controls the `rtc.udp_port` configuration property.
  212. # As an alternative to this, one may define both `livekit_server_config_rtc_port_range_start` and `livekit_server_config_rtc_port_range_end`.
  213. # Example: 7882
  214. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  215. livekit_server_config_rtc_udp_port: 7882
  216. # Controls the `rtc.use_external_ip` configuration property.
  217. # When set to true, attempts to discover the host's public IP via STUN.
  218. # This is useful for cloud environments such as AWS & Google where hosts have an internal IP that maps to an external one.
  219. # Related to: `livekit_server_config_rtc_node_ip`
  220. livekit_server_config_rtc_use_external_ip: true
  221. # Controls the `rtc.node_ip` configuration property.
  222. # This is the IP address sent to the client in case you cannot rely on external IP auto-detection.
  223. # Related to `livekit_server_config_rtc_use_external_ip`
  224. # See: https://github.com/livekit/livekit/issues/3747
  225. livekit_server_config_rtc_node_ip: ""
  226. ########################################################################################
  227. # #
  228. # /RTC #
  229. # #
  230. ########################################################################################
  231. ########################################################################################
  232. # #
  233. # TURN #
  234. # #
  235. ########################################################################################
  236. # Controls the `turn.enabled` configuration property.
  237. # When set to true, enables TURN server.
  238. livekit_server_config_turn_enabled: false
  239. # Controls the `turn.domain` configuration property.
  240. # Example: livekit.example.com
  241. livekit_server_config_turn_domain: "{{ livekit_server_hostname }}"
  242. # Controls the `turn.cert_file` configuration property.
  243. # Path to the TLS certificate file in the container.
  244. # Files on the host can be mounted into the container using `livekit_server_container_additional_volumes`.
  245. livekit_server_config_turn_cert_file: ""
  246. # Controls the `turn.key_file` configuration property.
  247. # Path to the TLS key file in the container.
  248. # Files on the host can be mounted into the container using `livekit_server_container_additional_volumes`.
  249. livekit_server_config_turn_key_file: ""
  250. # Controls the `turn.external_tls` configuration property.
  251. livekit_server_config_turn_external_tls: false
  252. # Controls the `turn.tls_port` configuration property.
  253. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  254. livekit_server_config_turn_tls_port: 5349
  255. # Controls the `turn.udp_port` configuration property.
  256. # See: https://docs.livekit.io/home/self-hosting/ports-firewall/
  257. livekit_server_config_turn_udp_port: 3478
  258. ########################################################################################
  259. # #
  260. # /TURN #
  261. # #
  262. ########################################################################################
  263. ########################################################################################
  264. # #
  265. # Prometheus #
  266. # #
  267. ########################################################################################
  268. # When set to true, enables Prometheus metrics.
  269. livekit_server_config_prometheus_enabled: false
  270. # Controls the `prometheus.port` configuration property, which affects the metrics port (in the container) that LiveKit Server exposes.
  271. livekit_server_config_prometheus_port: 8081
  272. # Controls the `prometheus.username` configuration property.
  273. # As an alternative, can configure authentication via `livekit_server_container_labels_public_metrics_middleware_basic_auth_users` as well.
  274. livekit_server_config_prometheus_username: ""
  275. # Controls the `prometheus.password` configuration property.
  276. # As an alternative, can configure authentication via `livekit_server_container_labels_public_metrics_middleware_basic_auth_users` as well.
  277. livekit_server_config_prometheus_password: ""
  278. ########################################################################################
  279. # #
  280. # /Prometheus #
  281. # #
  282. ########################################################################################
  283. # Controls the `keys` configuration property.
  284. livekit_server_config_keys: "{{ livekit_server_config_keys_auto | combine(livekit_server_config_keys_custom, recursive=True) }}"
  285. livekit_server_config_keys_auto: {}
  286. livekit_server_config_keys_custom: {}
  287. ########################################################################################
  288. # #
  289. # Limits #
  290. # #
  291. ########################################################################################
  292. # Ref:
  293. # - https://github.com/livekit/livekit/blob/46651c1978c8ae29d9b2d544b8b089c0960c9314/config-sample.yaml#L311-L330
  294. # - https://github.com/livekit/livekit/blob/46651c1978c8ae29d9b2d544b8b089c0960c9314/pkg/config/config.go#L395-L401
  295. # - for `num_tracks` and `bytes_per_sec`, the config-sample-yaml comments seem to be misleading. Defaults seem to be `0` in LiveKit code.
  296. # Controls the `limit.num_tracks` configuration property.
  297. # Set to -1 or 0 to disable the limit.
  298. livekit_server_config_limit_num_tracks: 0
  299. # Controls the `limit.bytes_per_sec` configuration property.
  300. # Set to 0 to disable the limit.
  301. livekit_server_config_limit_bytes_per_sec: 0
  302. # Controls the `limit.subscription_limit_video` configuration property.
  303. # How many video tracks a single participant can subscribe to at the same time.
  304. # 0 means no limit.
  305. livekit_server_config_limit_subscription_limit_video: 0
  306. # Controls the `limit.subscription_limit_audio` configuration property.
  307. # How many audio tracks a single participant can subscribe to at the same time.
  308. # 0 means no limit.
  309. livekit_server_config_limit_subscription_limit_audio: 0
  310. # Controls the `limit.max_metadata_size` configuration property.
  311. # Limit size of room and participant's metadata. 0 means no limit.
  312. livekit_server_config_limit_max_metadata_size: 64000
  313. # Controls the `limit.max_attributes_size` configuration property.
  314. # Limit total size of all attributes on a participant. 0 means no limit.
  315. livekit_server_config_limit_max_attributes_size: 64000
  316. # Controls the `limit.max_room_name_length` configuration property.
  317. # Limit length of room names. 0 means no limit.
  318. livekit_server_config_limit_max_room_name_length: 256
  319. # Controls the `limit.max_participant_identity_length` configuration property.
  320. # Limit length of participant identity. 0 means no limit.
  321. livekit_server_config_limit_max_participant_identity_length: 256
  322. # Controls the `limit.max_participant_name_length` configuration property.
  323. # Limit length of participant names. 0 means no limit.
  324. livekit_server_config_limit_max_participant_name_length: 256
  325. ########################################################################################
  326. # #
  327. # /Limits #
  328. # #
  329. ########################################################################################
  330. ########################################################################################
  331. # #
  332. # Logging #
  333. # #
  334. ########################################################################################
  335. # Controls the `logging.level` configuration property.
  336. # Valid values: debug, info, warn, error
  337. livekit_server_config_logging_level: info
  338. # Controls the `logging.pion_level` configuration property
  339. livekit_server_config_logging_pion_level: error
  340. # Controls the `logging.json` configuration property.
  341. # When set to true, emits json fields.
  342. livekit_server_config_logging_json: false
  343. # Controls the `logging.sample` configuration property.
  344. # For production setups, enables sampling algorithm.
  345. # See: https://github.com/uber-go/zap/blob/master/FAQ.md#why-sample-application-logs
  346. livekit_server_config_logging_sample: false
  347. ########################################################################################
  348. # #
  349. # /Logging #
  350. # #
  351. ########################################################################################
  352. # Controls whether LiveKitServer's metrics should be proxied (exposed) publicly via Traefik.
  353. livekit_server_metrics_proxying_enabled: false
  354. livekit_server_metrics_proxying_hostname: ""
  355. livekit_server_metrics_proxying_path: /metrics/livekit-server
  356. # livekit_server_restart_necessary controls whether the LiveKit Server systemd
  357. # service will be restarted (when true) or merely started (when false) by the
  358. # systemd service manager role (when conditional restart is enabled).
  359. #
  360. # This value is automatically computed during installation based on whether
  361. # any configuration files, the systemd service file, or the container image changed.
  362. # The default of `false` means "no restart needed" — appropriate when the role's
  363. # installation tasks haven't run (e.g., due to --tags skipping them).
  364. livekit_server_restart_necessary: false