Matrix Docker Ansible eploy
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

264 rindas
14 KiB

  1. # SPDX-FileCopyrightText: 2025 Jason LaGuidice
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # matrix-steam-bridge is a Matrix <-> Steam bridge
  6. # See: https://github.com/jasonlaguidice/matrix-steam-bridge
  7. matrix_steam_bridge_enabled: true
  8. matrix_steam_bridge_container_image_self_build: false
  9. matrix_steam_bridge_container_image_self_build_repo: "https://github.com/jasonlaguidice/matrix-steam-bridge.git"
  10. matrix_steam_bridge_container_image_self_build_repo_version: "{{ 'main' if matrix_steam_bridge_version == 'latest' else matrix_steam_bridge_version }}"
  11. # renovate: datasource=docker depName=ghcr.io/jasonlaguidice/matrix-steam-bridge
  12. matrix_steam_bridge_version: 1.1.0
  13. matrix_steam_bridge_container_image: "{{ matrix_steam_bridge_container_image_registry_prefix }}jasonlaguidice/matrix-steam-bridge:{{ matrix_steam_bridge_version }}"
  14. matrix_steam_bridge_container_image_registry_prefix: "{{ 'localhost/' if matrix_steam_bridge_container_image_self_build else matrix_steam_bridge_container_image_registry_prefix_upstream }}"
  15. matrix_steam_bridge_container_image_registry_prefix_upstream: "{{ matrix_steam_bridge_container_image_registry_prefix_upstream_default }}"
  16. matrix_steam_bridge_container_image_registry_prefix_upstream_default: "ghcr.io/"
  17. matrix_steam_bridge_container_image_tag: "{{ matrix_steam_bridge_version }}"
  18. matrix_steam_bridge_container_image_force_pull: "{{ matrix_steam_bridge_container_image.endswith(':latest') }}"
  19. matrix_steam_bridge_base_path: "{{ matrix_base_data_path }}/matrix-steam-bridge"
  20. matrix_steam_bridge_config_path: "{{ matrix_steam_bridge_base_path }}/config"
  21. matrix_steam_bridge_data_path: "{{ matrix_steam_bridge_base_path }}/data"
  22. matrix_steam_bridge_container_src_files_path: "{{ matrix_steam_bridge_base_path }}/docker-src"
  23. matrix_steam_bridge_homeserver_address: ""
  24. matrix_steam_bridge_homeserver_domain: "{{ matrix_domain }}"
  25. matrix_steam_bridge_appservice_address: "http://matrix-steam-bridge:{{ matrix_steam_bridge_appservice_port }}"
  26. matrix_steam_bridge_appservice_port: "8080"
  27. matrix_steam_bridge_msc4190_enabled: "{{ matrix_bridges_msc4190_enabled }}"
  28. matrix_steam_bridge_self_sign_enabled: "{{ matrix_bridges_self_sign_enabled }}"
  29. # matrix -> steam presence
  30. matrix_steam_bridge_network_presence_enabled: true
  31. # Default inactivity state
  32. # This is what the bridge sets it's status to after some time of no user interaction
  33. matrix_steam_bridge_network_presence_inactivity_status: 'invisible'
  34. # A public address that external services can use to reach this appservice
  35. matrix_steam_bridge_appservice_public_address: "https://{{ matrix_server_fqn_matrix }}"
  36. # Public media configuration for external access to bridge media
  37. matrix_steam_bridge_public_media_enabled: true
  38. # A key for signing public media URLs. If set to "generate", a random key will be generated.
  39. # This will be auto-generated deterministically if matrix_homeserver_generic_secret_key is set.
  40. matrix_steam_bridge_public_media_signing_key: ''
  41. # Number of seconds that public media URLs are valid for. If set to 0, URLs will never expire.
  42. matrix_steam_bridge_public_media_expiry: 0
  43. matrix_steam_bridge_public_media_hash_length: 32
  44. # Display name template for Steam users.
  45. # Available template variables:
  46. # {{.PersonaName}} - The Steam display name/persona name (most commonly used)
  47. # {{.AccountName}} - The Steam account/login name
  48. # {{.SteamID}} - The numeric Steam ID
  49. # {{.ProfileURL}} - The Steam profile URL
  50. # You can use template functions like {{or}} to provide fallbacks.
  51. matrix_steam_bridge_network_displayname_template: "{% raw %}{{ .PersonaName }} (Steam){% endraw %}"
  52. matrix_steam_bridge_command_prefix: "!steam"
  53. matrix_steam_bridge_bridge_permissions: |
  54. {{
  55. {matrix_steam_bridge_homeserver_domain: 'user'}
  56. | combine ({matrix_admin: 'admin'} if matrix_admin else {})
  57. }}
  58. # TODO: May need to set network for public media?
  59. matrix_steam_bridge_container_network: ""
  60. matrix_steam_bridge_container_additional_networks: "{{ matrix_steam_bridge_container_additional_networks_auto + matrix_steam_bridge_container_additional_networks_custom }}"
  61. matrix_steam_bridge_container_additional_networks_auto: []
  62. matrix_steam_bridge_container_additional_networks_custom: []
  63. # matrix_steam_bridge_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  64. # See `../templates/labels.j2` for details.
  65. #
  66. # To inject your own other container labels, see `matrix_steam_bridge_container_labels_additional_labels`.
  67. matrix_steam_bridge_container_labels_traefik_enabled: true
  68. matrix_steam_bridge_container_labels_traefik_docker_network: "{{ matrix_steam_bridge_container_network }}"
  69. matrix_steam_bridge_container_labels_traefik_entrypoints: web-secure
  70. matrix_steam_bridge_container_labels_traefik_tls: "{{ matrix_steam_bridge_container_labels_traefik_entrypoints != 'web' }}"
  71. matrix_steam_bridge_container_labels_traefik_tls_certResolver: default # noqa var-naming
  72. # Controls whether labels will be added that expose mautrix-instagram's metrics
  73. matrix_steam_bridge_container_labels_metrics_enabled: "{{ matrix_steam_bridge_metrics_enabled and matrix_steam_bridge_metrics_proxying_enabled }}"
  74. matrix_steam_bridge_container_labels_metrics_traefik_rule: "Host(`{{ matrix_steam_bridge_metrics_proxying_hostname }}`) && PathPrefix(`{{ matrix_steam_bridge_metrics_proxying_path_prefix }}`)"
  75. matrix_steam_bridge_container_labels_metrics_traefik_priority: 0
  76. matrix_steam_bridge_container_labels_metrics_traefik_entrypoints: "{{ matrix_steam_bridge_container_labels_traefik_entrypoints }}"
  77. matrix_steam_bridge_container_labels_metrics_traefik_tls: "{{ matrix_steam_bridge_container_labels_metrics_traefik_entrypoints != 'web' }}"
  78. matrix_steam_bridge_container_labels_metrics_traefik_tls_certResolver: "{{ matrix_steam_bridge_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  79. matrix_steam_bridge_container_labels_metrics_middleware_basic_auth_enabled: false
  80. # See: https://doc.traefik.io/traefik/middlewares/http/basicauth/#users
  81. matrix_steam_bridge_container_labels_metrics_middleware_basic_auth_users: ''
  82. # matrix_steam_bridge_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  83. # See `../templates/labels.j2` for details.
  84. #
  85. # Example:
  86. # matrix_steam_bridge_container_labels_additional_labels: |
  87. # my.label=1
  88. # another.label="here"
  89. matrix_steam_bridge_container_labels_additional_labels: ''
  90. # A list of extra arguments to pass to the container
  91. matrix_steam_bridge_container_extra_arguments: []
  92. # List of systemd services that matrix_steam_bridge.service depends on.
  93. matrix_steam_bridge_systemd_required_services_list: "{{ matrix_steam_bridge_systemd_required_services_list_default + matrix_steam_bridge_systemd_required_services_list_auto + matrix_steam_bridge_systemd_required_services_list_custom }}"
  94. matrix_steam_bridge_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  95. matrix_steam_bridge_systemd_required_services_list_auto: []
  96. matrix_steam_bridge_systemd_required_services_list_custom: []
  97. # List of systemd services that matrix_steam_bridge.service wants
  98. matrix_steam_bridge_systemd_wanted_services_list: []
  99. matrix_steam_bridge_appservice_token: ''
  100. matrix_steam_bridge_homeserver_token: ''
  101. # Whether or not created rooms should have federation enabled.
  102. # If false, created portal rooms will never be federated.
  103. matrix_steam_bridge_matrix_federate_rooms: false
  104. # Bridge configuration options
  105. # Should every user have their own portals rather than sharing them?
  106. matrix_steam_bridge_bridge_split_portals: false
  107. # Cleanup on logout configuration
  108. matrix_steam_bridge_bridge_cleanup_on_logout_enabled: false
  109. # Valid values for cleanup actions: nothing, kick, unbridge, delete
  110. # nothing - Do nothing, let the user stay in the portals
  111. # kick - Remove the user from the portal rooms, but don't delete them
  112. # unbridge - Remove all ghosts in the room and disassociate it from the remote chat
  113. # delete - Remove all ghosts and users from the room (i.e. delete it)
  114. matrix_steam_bridge_bridge_cleanup_on_logout_manual_private: nothing
  115. matrix_steam_bridge_bridge_cleanup_on_logout_manual_relayed: nothing
  116. matrix_steam_bridge_bridge_cleanup_on_logout_manual_shared_no_users: nothing
  117. matrix_steam_bridge_bridge_cleanup_on_logout_manual_shared_has_users: nothing
  118. matrix_steam_bridge_bridge_cleanup_on_logout_bad_credentials_private: nothing
  119. matrix_steam_bridge_bridge_cleanup_on_logout_bad_credentials_relayed: nothing
  120. matrix_steam_bridge_bridge_cleanup_on_logout_bad_credentials_shared_no_users: nothing
  121. matrix_steam_bridge_bridge_cleanup_on_logout_bad_credentials_shared_has_users: nothing
  122. # Homeserver configuration options
  123. # Does the homeserver support MSC2246 (async media uploads)?
  124. matrix_steam_bridge_homeserver_async_media: false
  125. # Database-related configuration fields.
  126. #
  127. # To use Postgres:
  128. # - adjust your database credentials via the `matrix_steam_bridge_postgres_*` variables
  129. matrix_steam_bridge_database_engine: 'postgres'
  130. matrix_steam_bridge_database_username: 'matrix_steam_bridge'
  131. matrix_steam_bridge_database_password: 'some-password'
  132. matrix_steam_bridge_database_hostname: ''
  133. matrix_steam_bridge_database_port: 5432
  134. matrix_steam_bridge_database_name: 'matrix_steam_bridge'
  135. matrix_steam_bridge_database_sslmode: disable
  136. matrix_steam_bridge_database_connection_string: 'postgres://{{ matrix_steam_bridge_database_username }}:{{ matrix_steam_bridge_database_password }}@{{ matrix_steam_bridge_database_hostname }}:{{ matrix_steam_bridge_database_port }}/{{ matrix_steam_bridge_database_name }}?sslmode={{ matrix_steam_bridge_database_sslmode }}'
  137. matrix_steam_bridge_database_uri: "{{
  138. {
  139. 'postgres': matrix_steam_bridge_database_connection_string,
  140. }[matrix_steam_bridge_database_engine]
  141. }}"
  142. matrix_steam_bridge_double_puppet_secrets: "{{ matrix_steam_bridge_double_puppet_secrets_auto | combine(matrix_steam_bridge_double_puppet_secrets_custom) }}"
  143. matrix_steam_bridge_double_puppet_secrets_auto: {}
  144. matrix_steam_bridge_double_puppet_secrets_custom: {}
  145. matrix_steam_bridge_appservice_bot_username: steambot
  146. matrix_steam_bridge_appservice_bot_displayname: Steam bridge bot
  147. matrix_steam_bridge_appservice_bot_avatar: mxc://shadowdrake.org/EeNKAcrmByNubPwoyceQsBaN
  148. matrix_steam_bridge_backfill_enabled: true
  149. # Maximum number of messages to backfill in empty rooms
  150. matrix_steam_bridge_backfill_max_initial_messages: 50
  151. # Maximum number of missed messages to backfill after bridge restarts
  152. matrix_steam_bridge_backfill_max_catchup_messages: 500
  153. # Shared secret for authentication of provisioning API requests.
  154. # If set to "disable", the provisioning API will be disabled.
  155. matrix_steam_bridge_provisioning_shared_secret: disable
  156. # Minimum severity of journal log messages.
  157. # Valid values: fatal, error, warn, info, debug, trace
  158. matrix_steam_bridge_logging_level: 'warn'
  159. # Whether or not metrics endpoint should be enabled.
  160. # Enabling them is usually enough for a local (in-container) Prometheus to consume them.
  161. # If metrics need to be consumed by another (external) Prometheus server, consider exposing them via `matrix_steam_bridge_metrics_proxying_enabled`.
  162. matrix_steam_bridge_metrics_enabled: false
  163. # Controls whether metrics should be exposed on a public URL.
  164. matrix_steam_bridge_metrics_proxying_enabled: false
  165. matrix_steam_bridge_metrics_proxying_hostname: ''
  166. matrix_steam_bridge_metrics_proxying_path_prefix: ''
  167. # Default configuration template which covers the generic use case.
  168. # You can customize it by controlling the various variables inside it.
  169. #
  170. # For a more advanced customization, you can extend the default (see `matrix_steam_bridge_configuration_extension_yaml`)
  171. # or completely replace this variable with your own template.
  172. matrix_steam_bridge_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  173. matrix_steam_bridge_configuration_extension_yaml: |
  174. # Your custom YAML configuration goes here.
  175. # This configuration extends the default starting configuration (`matrix_steam_bridge_configuration_yaml`).
  176. #
  177. # You can override individual variables from the default configuration, or introduce new ones.
  178. #
  179. # If you need something more special, you can take full control by
  180. # completely redefining `matrix_steam_bridge_configuration_yaml`.
  181. matrix_steam_bridge_configuration_extension: "{{ matrix_steam_bridge_configuration_extension_yaml | from_yaml if matrix_steam_bridge_configuration_extension_yaml | from_yaml is mapping else {} }}"
  182. # Holds the final configuration (a combination of the default and its extension).
  183. # You most likely don't need to touch this variable. Instead, see `matrix_steam_bridge_configuration_yaml`.
  184. matrix_steam_bridge_configuration: "{{ matrix_steam_bridge_configuration_yaml | from_yaml | combine(matrix_steam_bridge_configuration_extension, recursive=True) }}"
  185. matrix_steam_bridge_registration_yaml: |
  186. id: steam
  187. as_token: "{{ matrix_steam_bridge_appservice_token }}"
  188. hs_token: "{{ matrix_steam_bridge_homeserver_token }}"
  189. namespaces:
  190. users:
  191. - exclusive: true
  192. regex: '^@steam_.+:{{ matrix_steam_bridge_homeserver_domain | regex_escape }}$'
  193. - exclusive: true
  194. regex: '^@{{ matrix_steam_bridge_appservice_bot_username | regex_escape }}:{{ matrix_steam_bridge_homeserver_domain | regex_escape }}$'
  195. url: {{ matrix_steam_bridge_appservice_address }}
  196. sender_localpart: _bot_{{ matrix_steam_bridge_appservice_bot_username }}
  197. rate_limited: false
  198. de.sorunome.msc2409.push_ephemeral: true
  199. receive_ephemeral: true
  200. io.element.msc4190: {{ matrix_steam_bridge_msc4190_enabled | to_json }}
  201. matrix_steam_bridge_registration: "{{ matrix_steam_bridge_registration_yaml | from_yaml }}"
  202. # Enable End-to-bridge encryption
  203. matrix_steam_bridge_bridge_encryption_allow: "{{ matrix_bridges_encryption_enabled }}"
  204. matrix_steam_bridge_bridge_encryption_default: "{{ matrix_bridges_encryption_default }}"
  205. matrix_steam_bridge_bridge_encryption_require: false
  206. matrix_steam_bridge_bridge_encryption_appservice: false
  207. matrix_steam_bridge_bridge_encryption_key_sharing_allow: "{{ matrix_steam_bridge_bridge_encryption_allow }}"
  208. matrix_steam_bridge_bridge_encryption_pickle_key: mautrix.bridge.e2ee
  209. # matrix_steam_bridge_restart_necessary controls whether the service
  210. # will be restarted (when true) or merely started (when false) by the
  211. # systemd service manager role (when conditional restart is enabled).
  212. #
  213. # This value is automatically computed during installation based on whether
  214. # any configuration files, the systemd service file, or the container image changed.
  215. # The default of `false` means "no restart needed" — appropriate when the role's
  216. # installation tasks haven't run (e.g., due to --tags skipping them).
  217. matrix_steam_bridge_restart_necessary: false