Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 

232 строки
14 KiB

  1. # SPDX-FileCopyrightText: 2026 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2026 Nikita Chernyi
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. # beeper-line is a Matrix <-> LINE bridge
  7. # Project source code URL: https://github.com/beeper/line
  8. matrix_bridge_beeper_line_enabled: true
  9. matrix_bridge_beeper_line_container_image_self_build: false
  10. matrix_bridge_beeper_line_container_image_self_build_repo: "https://github.com/beeper/line.git"
  11. matrix_bridge_beeper_line_container_image_self_build_branch: "{{ 'main' if matrix_bridge_beeper_line_version == 'latest' else matrix_bridge_beeper_line_version }}"
  12. # Unlike other components, this one is pinned to a commit hash and not to a version number.
  13. # beeper-line's release tags are not maintained: the latest one (1.2.0) dates back to 2026-05-17 and lags behind the `main` branch by more than a hundred bugfix commits.
  14. # This is because upstream releases by deploying the `main` branch from CI, not by tagging.
  15. # Pinning to a tag would mean shipping a bridge which misses months' worth of fixes, so we pin to a commit from `main` instead.
  16. # A side effect is that Renovate cannot track updates for this component, so its version needs to be bumped manually.
  17. matrix_bridge_beeper_line_version: 412eda7f028f0ee946d6fe584c64c7e97f27c7a7
  18. # Upstream does not publish container images publicly (its CI only pushes to Beeper's private registry), so this is a community-maintained image built from the upstream source.
  19. # It is only available for the amd64 architecture, which is why the playbook falls back to self-building on other architectures.
  20. # To use another prebuilt image, override this variable directly.
  21. matrix_bridge_beeper_line_container_image: "{{ matrix_bridge_beeper_line_container_image_registry_prefix }}crispyduck/beeper-line:{{ matrix_bridge_beeper_line_version }}"
  22. matrix_bridge_beeper_line_container_image_registry_prefix: "{{ 'localhost/' if matrix_bridge_beeper_line_container_image_self_build else matrix_bridge_beeper_line_container_image_registry_prefix_upstream }}"
  23. matrix_bridge_beeper_line_container_image_registry_prefix_upstream: "{{ matrix_bridge_beeper_line_container_image_registry_prefix_upstream_default }}"
  24. matrix_bridge_beeper_line_container_image_registry_prefix_upstream_default: "docker.io/"
  25. matrix_bridge_beeper_line_base_path: "{{ matrix_base_data_path }}/beeper-line"
  26. matrix_bridge_beeper_line_config_path: "{{ matrix_bridge_beeper_line_base_path }}/config"
  27. matrix_bridge_beeper_line_data_path: "{{ matrix_bridge_beeper_line_base_path }}/data"
  28. matrix_bridge_beeper_line_container_src_files_path: "{{ matrix_bridge_beeper_line_base_path }}/docker-src"
  29. matrix_bridge_beeper_line_homeserver_address: ""
  30. # Whether asynchronous uploads via MSC2246 should be enabled for media.
  31. # Requires a homeserver that supports MSC2246 (https://github.com/matrix-org/matrix-spec-proposals/pull/2246).
  32. matrix_bridge_beeper_line_homeserver_async_media: false
  33. matrix_bridge_beeper_line_homeserver_domain: "{{ matrix_domain }}"
  34. matrix_bridge_beeper_line_appservice_address: "http://matrix-beeper-line:29322"
  35. # Scheme of the bridge's public address (see `matrix_bridge_beeper_line_bridge_public_address`).
  36. matrix_bridge_beeper_line_scheme: https
  37. # The public base URL at which this bridge's HTTP API is reachable from outside (when exposed).
  38. # Used for the provisioning API's external-server (OpenID) flow.
  39. matrix_bridge_beeper_line_bridge_public_address: "{{ (matrix_bridge_beeper_line_scheme + '://' + matrix_bridge_beeper_line_exposure_hostname + matrix_bridge_beeper_line_exposure_path_prefix) if matrix_bridge_beeper_line_exposure_enabled else '' }}"
  40. matrix_bridge_beeper_line_msc4190_enabled: "{{ matrix_bridges_msc4190_enabled }}"
  41. matrix_bridge_beeper_line_self_sign_enabled: "{{ matrix_bridges_self_sign_enabled }}"
  42. matrix_bridge_beeper_line_backfill_enabled: false
  43. matrix_bridge_beeper_line_backfill_max_initial_messages: 50
  44. matrix_bridge_beeper_line_backfill_max_catchup_messages: 500
  45. matrix_bridge_beeper_line_backfill_unread_hours_threshold: 720
  46. matrix_bridge_beeper_line_command_prefix: "!line"
  47. matrix_bridge_beeper_line_container_network: ""
  48. matrix_bridge_beeper_line_container_additional_networks: "{{ matrix_bridge_beeper_line_container_additional_networks_auto + matrix_bridge_beeper_line_container_additional_networks_custom }}"
  49. matrix_bridge_beeper_line_container_additional_networks_auto: []
  50. matrix_bridge_beeper_line_container_additional_networks_custom: []
  51. # matrix_bridge_beeper_line_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  52. # See `../templates/labels.j2` for details.
  53. #
  54. # To inject your own other container labels, see `matrix_bridge_beeper_line_container_labels_additional_labels`.
  55. matrix_bridge_beeper_line_container_labels_traefik_enabled: true
  56. matrix_bridge_beeper_line_container_labels_traefik_docker_network: "{{ matrix_bridge_beeper_line_container_network }}"
  57. matrix_bridge_beeper_line_container_labels_traefik_entrypoints: web-secure
  58. matrix_bridge_beeper_line_container_labels_traefik_tls_certResolver: default # noqa var-naming
  59. # Controls whether labels will be added that expose beeper-line's HTTP API
  60. # (used by tools like mautrix-manager for bridge login) at `https://<hostname><path_prefix>`.
  61. matrix_bridge_beeper_line_container_labels_exposure_enabled: "{{ matrix_bridge_beeper_line_exposure_enabled }}"
  62. matrix_bridge_beeper_line_container_labels_exposure_traefik_rule: "Host(`{{ matrix_bridge_beeper_line_exposure_hostname }}`) && PathPrefix(`{{ matrix_bridge_beeper_line_exposure_path_prefix }}`)"
  63. matrix_bridge_beeper_line_container_labels_exposure_traefik_priority: 0
  64. matrix_bridge_beeper_line_container_labels_exposure_traefik_entrypoints: "{{ matrix_bridge_beeper_line_container_labels_traefik_entrypoints }}"
  65. matrix_bridge_beeper_line_container_labels_exposure_traefik_tls: "{{ matrix_bridge_beeper_line_container_labels_exposure_traefik_entrypoints != 'web' }}"
  66. matrix_bridge_beeper_line_container_labels_exposure_traefik_tls_certResolver: "{{ matrix_bridge_beeper_line_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  67. # matrix_bridge_beeper_line_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  68. # See `../templates/labels.j2` for details.
  69. #
  70. # Example:
  71. # matrix_bridge_beeper_line_container_labels_additional_labels: |
  72. # my.label=1
  73. # another.label="here"
  74. matrix_bridge_beeper_line_container_labels_additional_labels: ''
  75. # A list of extra arguments to pass to the container
  76. matrix_bridge_beeper_line_container_extra_arguments: []
  77. # List of systemd services that matrix-beeper-line.service depends on.
  78. matrix_bridge_beeper_line_systemd_required_services_list: "{{ matrix_bridge_beeper_line_systemd_required_services_list_default + matrix_bridge_beeper_line_systemd_required_services_list_auto + matrix_bridge_beeper_line_systemd_required_services_list_custom }}"
  79. matrix_bridge_beeper_line_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  80. matrix_bridge_beeper_line_systemd_required_services_list_auto: []
  81. matrix_bridge_beeper_line_systemd_required_services_list_custom: []
  82. # List of systemd services that matrix-beeper-line.service wants
  83. matrix_bridge_beeper_line_systemd_wanted_services_list: []
  84. matrix_bridge_beeper_line_appservice_token: ''
  85. matrix_bridge_beeper_line_homeserver_token: ''
  86. matrix_bridge_beeper_line_appservice_bot_username: linebot
  87. matrix_bridge_beeper_line_appservice_bot_displayname: LINE bridge bot
  88. matrix_bridge_beeper_line_appservice_bot_avatar: ''
  89. # Minimum severity of journal log messages.
  90. # Valid values: fatal, error, warn, info, debug, trace
  91. matrix_bridge_beeper_line_logging_level: 'warn'
  92. # Whether or not created rooms should have federation enabled.
  93. # If false, created portal rooms will never be federated.
  94. matrix_bridge_beeper_line_federate_rooms: true
  95. # Controls whether beeper-line's HTTP API is exposed publicly (used by tools like mautrix-manager for bridge login).
  96. matrix_bridge_beeper_line_exposure_enabled: false
  97. matrix_bridge_beeper_line_exposure_hostname: ''
  98. matrix_bridge_beeper_line_exposure_path_prefix: ''
  99. # Database-related configuration fields.
  100. #
  101. # To use SQLite, stick to these defaults.
  102. #
  103. # To use Postgres:
  104. # - change the engine (`matrix_bridge_beeper_line_database_engine: 'postgres'`)
  105. # - adjust your database credentials via the `matrix_bridge_beeper_line_database_*` variables
  106. matrix_bridge_beeper_line_database_engine: 'sqlite'
  107. matrix_bridge_beeper_line_sqlite_database_path_local: "{{ matrix_bridge_beeper_line_data_path }}/matrix-line.db"
  108. matrix_bridge_beeper_line_sqlite_database_path_in_container: "file:/data/matrix-line.db?_txlock=immediate"
  109. matrix_bridge_beeper_line_database_username: 'matrix_beeper_line'
  110. matrix_bridge_beeper_line_database_password: 'some-password'
  111. matrix_bridge_beeper_line_database_hostname: ''
  112. matrix_bridge_beeper_line_database_port: 5432
  113. matrix_bridge_beeper_line_database_name: 'matrix_beeper_line'
  114. matrix_bridge_beeper_line_database_sslmode: disable
  115. matrix_bridge_beeper_line_database_connection_string: 'postgresql://{{ matrix_bridge_beeper_line_database_username }}:{{ matrix_bridge_beeper_line_database_password }}@{{ matrix_bridge_beeper_line_database_hostname }}:{{ matrix_bridge_beeper_line_database_port }}/{{ matrix_bridge_beeper_line_database_name }}?sslmode={{ matrix_bridge_beeper_line_database_sslmode }}'
  116. matrix_bridge_beeper_line_appservice_database_type: "{{ {
  117. 'sqlite': 'sqlite3-fk-wal',
  118. 'postgres': 'postgres',
  119. }[matrix_bridge_beeper_line_database_engine] }}"
  120. matrix_bridge_beeper_line_appservice_database_uri: "{{ {
  121. 'sqlite': matrix_bridge_beeper_line_sqlite_database_path_in_container,
  122. 'postgres': matrix_bridge_beeper_line_database_connection_string,
  123. }[matrix_bridge_beeper_line_database_engine] }}"
  124. matrix_bridge_beeper_line_double_puppet_secrets: "{{ matrix_bridge_beeper_line_double_puppet_secrets_auto | combine(matrix_bridge_beeper_line_double_puppet_secrets_custom) }}"
  125. matrix_bridge_beeper_line_double_puppet_secrets_auto: {}
  126. matrix_bridge_beeper_line_double_puppet_secrets_custom: {}
  127. # Enable End-to-bridge encryption
  128. matrix_bridge_beeper_line_bridge_encryption_allow: "{{ matrix_bridges_encryption_enabled }}"
  129. matrix_bridge_beeper_line_bridge_encryption_default: "{{ matrix_bridges_encryption_default }}"
  130. matrix_bridge_beeper_line_bridge_encryption_require: false
  131. matrix_bridge_beeper_line_bridge_encryption_appservice: false
  132. matrix_bridge_beeper_line_bridge_encryption_key_sharing_allow: "{{ matrix_bridge_beeper_line_bridge_encryption_allow }}"
  133. matrix_bridge_beeper_line_bridge_encryption_pickle_key: mautrix.bridge.e2ee
  134. matrix_bridge_beeper_line_appservice_username_template: "{% raw %}line_{{.}}{% endraw %}"
  135. # Shared secret for authentication of provisioning API requests.
  136. # If set to "disable", the provisioning API will be disabled.
  137. matrix_bridge_beeper_line_provisioning_shared_secret: disable
  138. matrix_bridge_beeper_line_bridge_personal_filtering_spaces: true
  139. matrix_bridge_beeper_line_bridge_permissions: |
  140. {{
  141. {'*': 'relay', matrix_bridge_beeper_line_homeserver_domain: 'user'}
  142. | combine({matrix_admin: 'admin'} if matrix_admin else {})
  143. }}
  144. # Default beeper-line configuration template which covers the generic use case.
  145. # You can customize it by controlling the various variables inside it.
  146. #
  147. # For a more advanced customization, you can extend the default (see `matrix_bridge_beeper_line_configuration_extension_yaml`)
  148. # or completely replace this variable with your own template.
  149. matrix_bridge_beeper_line_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  150. matrix_bridge_beeper_line_configuration_extension_yaml: |
  151. # Your custom YAML configuration goes here.
  152. # This configuration extends the default starting configuration (`matrix_bridge_beeper_line_configuration_yaml`).
  153. #
  154. # You can override individual variables from the default configuration, or introduce new ones.
  155. #
  156. # If you need something more special, you can take full control by
  157. # completely redefining `matrix_bridge_beeper_line_configuration_yaml`.
  158. matrix_bridge_beeper_line_configuration_extension: "{{ matrix_bridge_beeper_line_configuration_extension_yaml | from_yaml if matrix_bridge_beeper_line_configuration_extension_yaml | from_yaml is mapping else {} }}"
  159. # Holds the final configuration (a combination of the default and its extension).
  160. # You most likely don't need to touch this variable. Instead, see `matrix_bridge_beeper_line_configuration_yaml`.
  161. matrix_bridge_beeper_line_configuration: "{{ matrix_bridge_beeper_line_configuration_yaml | from_yaml | combine(matrix_bridge_beeper_line_configuration_extension, recursive=True) }}"
  162. matrix_bridge_beeper_line_registration_yaml: |
  163. id: line
  164. url: {{ matrix_bridge_beeper_line_appservice_address }}
  165. as_token: "{{ matrix_bridge_beeper_line_appservice_token }}"
  166. hs_token: "{{ matrix_bridge_beeper_line_homeserver_token }}"
  167. sender_localpart: _bot_{{ matrix_bridge_beeper_line_appservice_bot_username }}
  168. rate_limited: false
  169. namespaces:
  170. users:
  171. - regex: '^@line_.+:{{ matrix_bridge_beeper_line_homeserver_domain | regex_escape }}$'
  172. exclusive: true
  173. - exclusive: true
  174. regex: '^@{{ matrix_bridge_beeper_line_appservice_bot_username | regex_escape }}:{{ matrix_bridge_beeper_line_homeserver_domain | regex_escape }}$'
  175. de.sorunome.msc2409.push_ephemeral: true
  176. receive_ephemeral: true
  177. io.element.msc4190: {{ matrix_bridge_beeper_line_msc4190_enabled | to_json }}
  178. matrix_bridge_beeper_line_registration: "{{ matrix_bridge_beeper_line_registration_yaml | from_yaml }}"
  179. # matrix_bridge_beeper_line_restart_necessary controls whether the service
  180. # will be restarted (when true) or merely started (when false) by the
  181. # systemd service manager role (when conditional restart is enabled).
  182. #
  183. # This value is automatically computed during installation based on whether
  184. # any configuration files, the systemd service file, or the container image changed.
  185. # The default of `false` means "no restart needed", appropriate when the role's
  186. # installation tasks haven't run (e.g., due to --tags skipping them).
  187. matrix_bridge_beeper_line_restart_necessary: false