Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

254 Zeilen
14 KiB

  1. # SPDX-FileCopyrightText: 2026 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2026 Jason LaGuidice
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. # matrix-bridge-rustpush is a Matrix <-> iMessage bridge using RustPush
  7. # Project source code URL: https://github.com/jasonlaguidice/imessage
  8. matrix_rustpush_bridge_enabled: false
  9. matrix_rustpush_bridge_container_image_self_build: false
  10. matrix_rustpush_bridge_container_image_self_build_repo: "https://github.com/jasonlaguidice/imessage.git"
  11. matrix_rustpush_bridge_container_image_self_build_repo_version: "{{ 'master' if matrix_rustpush_bridge_version == 'latest' else matrix_rustpush_bridge_version }}"
  12. # renovate: datasource=docker depName=ghcr.io/jasonlaguidice/imessage
  13. matrix_rustpush_bridge_version: v0.0.3
  14. matrix_rustpush_bridge_container_image: "{{ matrix_rustpush_bridge_container_image_registry_prefix }}jasonlaguidice/imessage:{{ matrix_rustpush_bridge_version }}"
  15. matrix_rustpush_bridge_container_image_registry_prefix: "{{ 'localhost/' if matrix_rustpush_bridge_container_image_self_build else matrix_rustpush_bridge_container_image_registry_prefix_upstream }}"
  16. matrix_rustpush_bridge_container_image_registry_prefix_upstream: "{{ matrix_rustpush_bridge_container_image_registry_prefix_upstream_default }}"
  17. matrix_rustpush_bridge_container_image_registry_prefix_upstream_default: "ghcr.io/"
  18. matrix_rustpush_bridge_base_path: "{{ matrix_base_data_path }}/matrix-rustpush-bridge"
  19. matrix_rustpush_bridge_config_path: "{{ matrix_rustpush_bridge_base_path }}/config"
  20. matrix_rustpush_bridge_data_path: "{{ matrix_rustpush_bridge_base_path }}/data"
  21. matrix_rustpush_bridge_container_src_files_path: "{{ matrix_rustpush_bridge_base_path }}/docker-src"
  22. matrix_rustpush_bridge_homeserver_address: ""
  23. # Whether asynchronous uploads via MSC2246 should be enabled for media.
  24. matrix_rustpush_bridge_homeserver_async_media: false
  25. matrix_rustpush_bridge_homeserver_domain: '{{ matrix_domain }}'
  26. matrix_rustpush_bridge_appservice_address: 'http://matrix-rustpush-bridge:8081'
  27. matrix_rustpush_bridge_msc4190_enabled: "{{ matrix_bridges_msc4190_enabled }}"
  28. matrix_rustpush_bridge_self_sign_enabled: "{{ matrix_bridges_self_sign_enabled }}"
  29. # A public address that external services can use to reach this appservice.
  30. matrix_rustpush_bridge_appservice_public_address: ''
  31. # Displayname template for iMessage contacts.
  32. # Available variables: {{.FirstName}}, {{.LastName}}, {{.Nickname}},
  33. # {{.Phone}}, {{.Email}}, {{.ID}}
  34. matrix_rustpush_bridge_network_displayname_template: "{% raw %}{{if .FirstName}}{{.FirstName}}{{if .LastName}} {{.LastName}}{{end}}{{else if .Nickname}}{{.Nickname}}{{else if .Phone}}{{.Phone}}{{else if .Email}}{{.Email}}{{else}}{{.ID}}{{end}} (iMessage){% endraw %}"
  35. matrix_rustpush_bridge_cloudkit_backfill: true
  36. matrix_rustpush_bridge_video_transcoding: true
  37. matrix_rustpush_bridge_heic_conversion: true
  38. matrix_rustpush_bridge_disable_facetime: false
  39. matrix_rustpush_bridge_statuskit_notifications: false
  40. matrix_rustpush_bridge_statuskit_share_on_startup: true
  41. # Only takes effect when `matrix_rustpush_bridge_statuskit_notifications` is true.
  42. # - topic: sets the contact's DM room topic to their Focus/DND state (e.g. "🔕 Do Not Disturb"), clearing it when available.
  43. # - notice: posts a silent m.notice instead (legacy behavior).
  44. # Group chats always use `notice`, regardless of this setting.
  45. matrix_rustpush_bridge_statuskit_notification_style: topic
  46. matrix_rustpush_bridge_bridge_command_prefix: "!im"
  47. matrix_rustpush_bridge_bridge_permissions: |
  48. {{
  49. {matrix_rustpush_bridge_homeserver_domain: 'user'}
  50. | combine({matrix_admin: 'admin'} if matrix_admin else {})
  51. }}
  52. matrix_rustpush_bridge_container_network: ""
  53. matrix_rustpush_bridge_container_additional_networks: "{{ matrix_rustpush_bridge_container_additional_networks_auto + matrix_rustpush_bridge_container_additional_networks_custom }}"
  54. matrix_rustpush_bridge_container_additional_networks_auto: []
  55. matrix_rustpush_bridge_container_additional_networks_custom: []
  56. # matrix_rustpush_bridge_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  57. # See `../templates/labels.j2` for details.
  58. #
  59. # To inject your own other container labels, see `matrix_rustpush_bridge_container_labels_additional_labels`.
  60. matrix_rustpush_bridge_container_labels_traefik_enabled: true
  61. matrix_rustpush_bridge_container_labels_traefik_docker_network: "{{ matrix_rustpush_bridge_container_network }}"
  62. matrix_rustpush_bridge_container_labels_traefik_entrypoints: web-secure
  63. matrix_rustpush_bridge_container_labels_traefik_tls_certResolver: default # noqa var-naming
  64. # Controls whether labels will be added that expose metrics
  65. matrix_rustpush_bridge_container_labels_metrics_enabled: "{{ matrix_rustpush_bridge_metrics_enabled and matrix_rustpush_bridge_metrics_proxying_enabled }}"
  66. matrix_rustpush_bridge_container_labels_metrics_traefik_rule: "Host(`{{ matrix_rustpush_bridge_metrics_proxying_hostname }}`) && PathPrefix(`{{ matrix_rustpush_bridge_metrics_proxying_path_prefix }}`)"
  67. matrix_rustpush_bridge_container_labels_metrics_traefik_priority: 0
  68. matrix_rustpush_bridge_container_labels_metrics_traefik_entrypoints: "{{ matrix_rustpush_bridge_container_labels_traefik_entrypoints }}"
  69. matrix_rustpush_bridge_container_labels_metrics_traefik_tls: "{{ matrix_rustpush_bridge_container_labels_metrics_traefik_entrypoints != 'web' }}"
  70. matrix_rustpush_bridge_container_labels_metrics_traefik_tls_certResolver: "{{ matrix_rustpush_bridge_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  71. matrix_rustpush_bridge_container_labels_metrics_middleware_basic_auth_enabled: false
  72. # See: https://doc.traefik.io/traefik/middlewares/http/basicauth/#users
  73. matrix_rustpush_bridge_container_labels_metrics_middleware_basic_auth_users: ''
  74. # matrix_rustpush_bridge_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  75. # See `../templates/labels.j2` for details.
  76. #
  77. # Example:
  78. # matrix_rustpush_bridge_container_labels_additional_labels: |
  79. # my.label=1
  80. # another.label="here"
  81. matrix_rustpush_bridge_container_labels_additional_labels: ''
  82. # A list of extra arguments to pass to the container
  83. matrix_rustpush_bridge_container_extra_arguments: []
  84. # Override the Rust log filter passed to the bridge container via RUST_LOG.
  85. # Leave empty to use the bridge's built-in default
  86. # ("warn,rustpush=warn,rustpushgo=info,open_absinthe=info").
  87. #
  88. # Useful values:
  89. # "warn,rustpushgo=info,open_absinthe=debug" # NAC emulator diagnostics (_enc field sizes, etc.)
  90. # "warn,rustpushgo=info,open_absinthe=debug,rustpush=info" # + upstream rustpush internals
  91. # "debug" # everything (very chatty)
  92. #
  93. # The open_absinthe crate logs NAC hardware-key diagnostics at INFO and emulator
  94. # state at DEBUG. These are suppressed by default to reduce log noise.
  95. matrix_rustpush_bridge_rust_log: ""
  96. # List of systemd services that matrix-rustpush-bridge.service depends on.
  97. matrix_rustpush_bridge_systemd_required_services_list: "{{ matrix_rustpush_bridge_systemd_required_services_list_default + matrix_rustpush_bridge_systemd_required_services_list_auto + matrix_rustpush_bridge_systemd_required_services_list_custom }}"
  98. matrix_rustpush_bridge_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  99. matrix_rustpush_bridge_systemd_required_services_list_auto: []
  100. matrix_rustpush_bridge_systemd_required_services_list_custom: []
  101. # List of systemd services that matrix-rustpush-bridge.service wants
  102. matrix_rustpush_bridge_systemd_wanted_services_list: []
  103. matrix_rustpush_bridge_appservice_token: ''
  104. matrix_rustpush_bridge_homeserver_token: ''
  105. # Whether or not created rooms should have federation enabled.
  106. # If false, created portal rooms will never be federated.
  107. matrix_rustpush_bridge_matrix_federate_rooms: false
  108. # Database-related configuration fields.
  109. #
  110. # To use Postgres:
  111. # - adjust your database credentials via the `matrix_rustpush_bridge_postgres_*` variables
  112. matrix_rustpush_bridge_database_engine: 'postgres'
  113. matrix_rustpush_bridge_database_username: 'matrix_rustpush_bridge'
  114. matrix_rustpush_bridge_database_password: 'some-password'
  115. matrix_rustpush_bridge_database_hostname: ''
  116. matrix_rustpush_bridge_database_port: 5432
  117. matrix_rustpush_bridge_database_name: 'matrix_rustpush_bridge'
  118. matrix_rustpush_bridge_database_sslmode: disable
  119. matrix_rustpush_bridge_database_connection_string: 'postgres://{{ matrix_rustpush_bridge_database_username }}:{{ matrix_rustpush_bridge_database_password }}@{{ matrix_rustpush_bridge_database_hostname }}:{{ matrix_rustpush_bridge_database_port }}/{{ matrix_rustpush_bridge_database_name }}?sslmode={{ matrix_rustpush_bridge_database_sslmode }}'
  120. matrix_rustpush_bridge_database_uri: "{{
  121. {
  122. 'postgres': matrix_rustpush_bridge_database_connection_string,
  123. }[matrix_rustpush_bridge_database_engine]
  124. }}"
  125. matrix_rustpush_bridge_double_puppet_secrets: "{{ matrix_rustpush_bridge_double_puppet_secrets_auto | combine(matrix_rustpush_bridge_double_puppet_secrets_custom) }}"
  126. matrix_rustpush_bridge_double_puppet_secrets_auto: {}
  127. matrix_rustpush_bridge_double_puppet_secrets_custom: {}
  128. matrix_rustpush_bridge_appservice_bot_username: rustpushbot
  129. matrix_rustpush_bridge_appservice_bot_displayname: RustPush bridge bot
  130. matrix_rustpush_bridge_appservice_bot_avatar: ''
  131. # Localpart template for MXIDs of remote (iMessage) users.
  132. # The `{{.}}` placeholder expands to the iMessage handle (phone/email).
  133. matrix_rustpush_bridge_appservice_username_template: "{% raw %}rustpush_{{.}}{% endraw %}"
  134. # Backfill is disabled by default because Linux Docker cannot access chat.db.
  135. # On macOS with Full Disk Access, this can be set to true.
  136. matrix_rustpush_bridge_backfill_enabled: false
  137. # Maximum number of messages to backfill in empty rooms
  138. matrix_rustpush_bridge_backfill_max_initial_messages: 50
  139. # Maximum number of missed messages to backfill after bridge restarts
  140. matrix_rustpush_bridge_backfill_max_catchup_messages: 500
  141. # How many days back to look for chats during initial sync.
  142. # Default in upstream is 365 (1 year). Set to 0 to disable.
  143. matrix_rustpush_bridge_initial_sync_days: 365
  144. # Shared secret for authentication of provisioning API requests.
  145. # If set to "disable", the provisioning API will be disabled.
  146. matrix_rustpush_bridge_provisioning_shared_secret: disable
  147. # Minimum severity of journal log messages.
  148. # Valid values: fatal, error, warn, info, debug, trace
  149. matrix_rustpush_bridge_logging_level: 'warn'
  150. # Whether or not metrics endpoint should be enabled.
  151. # Enabling them is usually enough for a local (in-container) Prometheus to consume them.
  152. # If metrics need to be consumed by another (external) Prometheus server, consider exposing them via `matrix_rustpush_bridge_metrics_proxying_enabled`.
  153. matrix_rustpush_bridge_metrics_enabled: false
  154. # Controls whether metrics should be exposed on a public URL.
  155. matrix_rustpush_bridge_metrics_proxying_enabled: false
  156. matrix_rustpush_bridge_metrics_proxying_hostname: ''
  157. matrix_rustpush_bridge_metrics_proxying_path_prefix: ''
  158. # Default configuration template which covers the generic use case.
  159. # You can customize it by controlling the various variables inside it.
  160. #
  161. # For a more advanced customization, you can extend the default (see `matrix_rustpush_bridge_configuration_extension_yaml`)
  162. # or completely replace this variable with your own template.
  163. matrix_rustpush_bridge_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  164. matrix_rustpush_bridge_configuration_extension_yaml: |
  165. # Your custom YAML configuration goes here.
  166. # This configuration extends the default starting configuration (`matrix_rustpush_bridge_configuration_yaml`).
  167. #
  168. # You can override individual variables from the default configuration, or introduce new ones.
  169. #
  170. # If you need something more special, you can take full control by
  171. # completely redefining `matrix_rustpush_bridge_configuration_yaml`.
  172. matrix_rustpush_bridge_configuration_extension: "{{ matrix_rustpush_bridge_configuration_extension_yaml | from_yaml if matrix_rustpush_bridge_configuration_extension_yaml | from_yaml is mapping else {} }}"
  173. # Holds the final configuration (a combination of the default and its extension).
  174. # You most likely don't need to touch this variable. Instead, see `matrix_rustpush_bridge_configuration_yaml`.
  175. matrix_rustpush_bridge_configuration: "{{ matrix_rustpush_bridge_configuration_yaml | from_yaml | combine(matrix_rustpush_bridge_configuration_extension, recursive=True) }}"
  176. matrix_rustpush_bridge_registration_yaml: |
  177. id: rustpush-bridge
  178. as_token: "{{ matrix_rustpush_bridge_appservice_token }}"
  179. hs_token: "{{ matrix_rustpush_bridge_homeserver_token }}"
  180. namespaces:
  181. users:
  182. - exclusive: true
  183. regex: '^@rustpush_.+:{{ matrix_rustpush_bridge_homeserver_domain | regex_escape }}$'
  184. - exclusive: true
  185. regex: '^@{{ matrix_rustpush_bridge_appservice_bot_username | regex_escape }}:{{ matrix_rustpush_bridge_homeserver_domain | regex_escape }}$'
  186. url: {{ matrix_rustpush_bridge_appservice_address }}
  187. sender_localpart: _bot_{{ matrix_rustpush_bridge_appservice_bot_username }}
  188. rate_limited: false
  189. de.sorunome.msc2409.push_ephemeral: true
  190. receive_ephemeral: true
  191. io.element.msc4190: {{ matrix_rustpush_bridge_msc4190_enabled | to_json }}
  192. matrix_rustpush_bridge_registration: "{{ matrix_rustpush_bridge_registration_yaml | from_yaml }}"
  193. # Enable End-to-bridge encryption
  194. matrix_rustpush_bridge_bridge_encryption_allow: "{{ matrix_bridges_encryption_enabled }}"
  195. matrix_rustpush_bridge_bridge_encryption_default: "{{ matrix_bridges_encryption_default }}"
  196. matrix_rustpush_bridge_bridge_encryption_require: false
  197. matrix_rustpush_bridge_bridge_encryption_appservice: false
  198. matrix_rustpush_bridge_bridge_encryption_key_sharing_allow: "{{ matrix_rustpush_bridge_bridge_encryption_allow }}"
  199. matrix_rustpush_bridge_bridge_encryption_pickle_key: mautrix.bridge.e2ee
  200. # matrix_rustpush_bridge_restart_necessary controls whether the service
  201. # will be restarted (when true) or merely started (when false) by the
  202. # systemd service manager role (when conditional restart is enabled).
  203. #
  204. # This value is automatically computed during installation based on whether
  205. # any configuration files, the systemd service file, or the container image changed.
  206. # The default of `false` means "no restart needed" — appropriate when the role's
  207. # installation tasks haven't run (e.g., due to --tags skipping them).
  208. matrix_rustpush_bridge_restart_necessary: false