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

270 строки
15 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_bridge_steam_enabled: true
  8. matrix_bridge_steam_container_image_self_build: false
  9. matrix_bridge_steam_container_image_self_build_repo: "https://github.com/jasonlaguidice/matrix-steam-bridge.git"
  10. matrix_bridge_steam_container_image_self_build_repo_version: "{{ 'main' if matrix_bridge_steam_version == 'latest' else matrix_bridge_steam_version }}"
  11. # renovate: datasource=docker depName=ghcr.io/jasonlaguidice/matrix-steam-bridge
  12. matrix_bridge_steam_version: 1.3.0
  13. matrix_bridge_steam_container_image: "{{ matrix_bridge_steam_container_image_registry_prefix }}jasonlaguidice/matrix-steam-bridge:{{ matrix_bridge_steam_version }}"
  14. matrix_bridge_steam_container_image_registry_prefix: "{{ 'localhost/' if matrix_bridge_steam_container_image_self_build else matrix_bridge_steam_container_image_registry_prefix_upstream }}"
  15. matrix_bridge_steam_container_image_registry_prefix_upstream: "{{ matrix_bridge_steam_container_image_registry_prefix_upstream_default }}"
  16. matrix_bridge_steam_container_image_registry_prefix_upstream_default: "ghcr.io/"
  17. matrix_bridge_steam_container_image_tag: "{{ matrix_bridge_steam_version }}"
  18. matrix_bridge_steam_base_path: "{{ matrix_base_data_path }}/matrix-steam-bridge"
  19. matrix_bridge_steam_config_path: "{{ matrix_bridge_steam_base_path }}/config"
  20. matrix_bridge_steam_data_path: "{{ matrix_bridge_steam_base_path }}/data"
  21. matrix_bridge_steam_container_src_files_path: "{{ matrix_bridge_steam_base_path }}/docker-src"
  22. matrix_bridge_steam_homeserver_address: ""
  23. matrix_bridge_steam_homeserver_domain: "{{ matrix_domain }}"
  24. matrix_bridge_steam_appservice_address: "http://matrix-steam-bridge:{{ matrix_bridge_steam_appservice_port }}"
  25. matrix_bridge_steam_appservice_port: "8080"
  26. matrix_bridge_steam_msc4190_enabled: "{{ matrix_bridges_msc4190_enabled }}"
  27. matrix_bridge_steam_self_sign_enabled: "{{ matrix_bridges_self_sign_enabled }}"
  28. # matrix -> steam presence
  29. matrix_bridge_steam_network_presence_enabled: true
  30. # Default inactivity state
  31. # This is what the bridge sets it's status to after some time of no user interaction
  32. matrix_bridge_steam_network_presence_inactivity_status: 'invisible'
  33. # steam -> matrix presence topic
  34. # Master switch for setting a Steam friend's current game (+ rich presence flavor
  35. # text) as the DM room's m.room.topic.
  36. matrix_bridge_steam_network_presence_topic_enabled: false
  37. # Append resolved rich presence flavor text to the topic (e.g. "Deadlock — Street Brawl: Paige (12 min)").
  38. matrix_bridge_steam_network_presence_topic_rich_presence_enabled: false
  39. # Fallback: show the raw unresolved rich presence token if resolution fails.
  40. matrix_bridge_steam_network_presence_topic_show_raw_tokens: false
  41. # A public address that external services can use to reach this appservice
  42. matrix_bridge_steam_appservice_public_address: "https://{{ matrix_server_fqn_matrix }}"
  43. # Public media configuration for external access to bridge media
  44. matrix_bridge_steam_public_media_enabled: true
  45. # A key for signing public media URLs. If set to "generate", a random key will be generated.
  46. # This will be auto-generated deterministically if matrix_homeserver_generic_secret_key is set.
  47. matrix_bridge_steam_public_media_signing_key: ''
  48. # Number of seconds that public media URLs are valid for. If set to 0, URLs will never expire.
  49. matrix_bridge_steam_public_media_expiry: 0
  50. matrix_bridge_steam_public_media_hash_length: 32
  51. # Display name template for Steam users.
  52. # Available template variables:
  53. # {{.PersonaName}} - The Steam display name/persona name (most commonly used)
  54. # {{.AccountName}} - The Steam account/login name
  55. # {{.SteamID}} - The numeric Steam ID
  56. # {{.ProfileURL}} - The Steam profile URL
  57. # You can use template functions like {{or}} to provide fallbacks.
  58. matrix_bridge_steam_network_displayname_template: "{% raw %}{{ .PersonaName }} (Steam){% endraw %}"
  59. matrix_bridge_steam_command_prefix: "!steam"
  60. matrix_bridge_steam_bridge_permissions: |
  61. {{
  62. {matrix_bridge_steam_homeserver_domain: 'user'}
  63. | combine ({matrix_admin: 'admin'} if matrix_admin else {})
  64. }}
  65. # TODO: May need to set network for public media?
  66. matrix_bridge_steam_container_network: ""
  67. matrix_bridge_steam_container_additional_networks: "{{ matrix_bridge_steam_container_additional_networks_auto + matrix_bridge_steam_container_additional_networks_custom }}"
  68. matrix_bridge_steam_container_additional_networks_auto: []
  69. matrix_bridge_steam_container_additional_networks_custom: []
  70. # matrix_bridge_steam_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 `matrix_bridge_steam_container_labels_additional_labels`.
  74. matrix_bridge_steam_container_labels_traefik_enabled: true
  75. matrix_bridge_steam_container_labels_traefik_docker_network: "{{ matrix_bridge_steam_container_network }}"
  76. matrix_bridge_steam_container_labels_traefik_entrypoints: web-secure
  77. matrix_bridge_steam_container_labels_traefik_tls: "{{ matrix_bridge_steam_container_labels_traefik_entrypoints != 'web' }}"
  78. matrix_bridge_steam_container_labels_traefik_tls_certResolver: default # noqa var-naming
  79. # Controls whether labels will be added that expose mautrix-instagram's metrics
  80. matrix_bridge_steam_container_labels_metrics_enabled: "{{ matrix_bridge_steam_metrics_enabled and matrix_bridge_steam_metrics_proxying_enabled }}"
  81. matrix_bridge_steam_container_labels_metrics_traefik_rule: "Host(`{{ matrix_bridge_steam_metrics_proxying_hostname }}`) && PathPrefix(`{{ matrix_bridge_steam_metrics_proxying_path_prefix }}`)"
  82. matrix_bridge_steam_container_labels_metrics_traefik_priority: 0
  83. matrix_bridge_steam_container_labels_metrics_traefik_entrypoints: "{{ matrix_bridge_steam_container_labels_traefik_entrypoints }}"
  84. matrix_bridge_steam_container_labels_metrics_traefik_tls: "{{ matrix_bridge_steam_container_labels_metrics_traefik_entrypoints != 'web' }}"
  85. matrix_bridge_steam_container_labels_metrics_traefik_tls_certResolver: "{{ matrix_bridge_steam_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  86. matrix_bridge_steam_container_labels_metrics_middleware_basic_auth_enabled: false
  87. # See: https://doc.traefik.io/traefik/middlewares/http/basicauth/#users
  88. matrix_bridge_steam_container_labels_metrics_middleware_basic_auth_users: ''
  89. # matrix_bridge_steam_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  90. # See `../templates/labels.j2` for details.
  91. #
  92. # Example:
  93. # matrix_bridge_steam_container_labels_additional_labels: |
  94. # my.label=1
  95. # another.label="here"
  96. matrix_bridge_steam_container_labels_additional_labels: ''
  97. # A list of extra arguments to pass to the container
  98. matrix_bridge_steam_container_extra_arguments: []
  99. # List of systemd services that matrix-steam-bridge.service depends on.
  100. matrix_bridge_steam_systemd_required_services_list: "{{ matrix_bridge_steam_systemd_required_services_list_default + matrix_bridge_steam_systemd_required_services_list_auto + matrix_bridge_steam_systemd_required_services_list_custom }}"
  101. matrix_bridge_steam_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  102. matrix_bridge_steam_systemd_required_services_list_auto: []
  103. matrix_bridge_steam_systemd_required_services_list_custom: []
  104. # List of systemd services that matrix-steam-bridge.service wants
  105. matrix_bridge_steam_systemd_wanted_services_list: []
  106. matrix_bridge_steam_appservice_token: ''
  107. matrix_bridge_steam_homeserver_token: ''
  108. # Whether or not created rooms should have federation enabled.
  109. # If false, created portal rooms will never be federated.
  110. matrix_bridge_steam_matrix_federate_rooms: false
  111. # Bridge configuration options
  112. # Should every user have their own portals rather than sharing them?
  113. matrix_bridge_steam_bridge_split_portals: false
  114. # Cleanup on logout configuration
  115. matrix_bridge_steam_bridge_cleanup_on_logout_enabled: false
  116. # Valid values for cleanup actions: nothing, kick, unbridge, delete
  117. # nothing - Do nothing, let the user stay in the portals
  118. # kick - Remove the user from the portal rooms, but don't delete them
  119. # unbridge - Remove all ghosts in the room and disassociate it from the remote chat
  120. # delete - Remove all ghosts and users from the room (i.e. delete it)
  121. matrix_bridge_steam_bridge_cleanup_on_logout_manual_private: nothing
  122. matrix_bridge_steam_bridge_cleanup_on_logout_manual_relayed: nothing
  123. matrix_bridge_steam_bridge_cleanup_on_logout_manual_shared_no_users: nothing
  124. matrix_bridge_steam_bridge_cleanup_on_logout_manual_shared_has_users: nothing
  125. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_private: nothing
  126. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_relayed: nothing
  127. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_shared_no_users: nothing
  128. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_shared_has_users: nothing
  129. # Homeserver configuration options
  130. # Does the homeserver support MSC2246 (async media uploads)?
  131. matrix_bridge_steam_homeserver_async_media: false
  132. # Database-related configuration fields.
  133. #
  134. # To use Postgres:
  135. # - adjust your database credentials via the `matrix_bridge_steam_postgres_*` variables
  136. matrix_bridge_steam_database_engine: 'postgres'
  137. matrix_bridge_steam_database_username: 'matrix_steam_bridge'
  138. matrix_bridge_steam_database_password: 'some-password'
  139. matrix_bridge_steam_database_hostname: ''
  140. matrix_bridge_steam_database_port: 5432
  141. matrix_bridge_steam_database_name: 'matrix_steam_bridge'
  142. matrix_bridge_steam_database_sslmode: disable
  143. matrix_bridge_steam_database_connection_string: 'postgres://{{ matrix_bridge_steam_database_username }}:{{ matrix_bridge_steam_database_password }}@{{ matrix_bridge_steam_database_hostname }}:{{ matrix_bridge_steam_database_port }}/{{ matrix_bridge_steam_database_name }}?sslmode={{ matrix_bridge_steam_database_sslmode }}'
  144. matrix_bridge_steam_database_uri: "{{ {
  145. 'postgres': matrix_bridge_steam_database_connection_string,
  146. }[matrix_bridge_steam_database_engine] }}"
  147. matrix_bridge_steam_double_puppet_secrets: "{{ matrix_bridge_steam_double_puppet_secrets_auto | combine(matrix_bridge_steam_double_puppet_secrets_custom) }}"
  148. matrix_bridge_steam_double_puppet_secrets_auto: {}
  149. matrix_bridge_steam_double_puppet_secrets_custom: {}
  150. matrix_bridge_steam_appservice_bot_username: steambot
  151. matrix_bridge_steam_appservice_bot_displayname: Steam bridge bot
  152. matrix_bridge_steam_appservice_bot_avatar: mxc://shadowdrake.org/EeNKAcrmByNubPwoyceQsBaN
  153. matrix_bridge_steam_backfill_enabled: true
  154. # Maximum number of messages to backfill in empty rooms
  155. matrix_bridge_steam_backfill_max_initial_messages: 50
  156. # Maximum number of missed messages to backfill after bridge restarts
  157. matrix_bridge_steam_backfill_max_catchup_messages: 500
  158. # Shared secret for authentication of provisioning API requests.
  159. # If set to "disable", the provisioning API will be disabled.
  160. matrix_bridge_steam_provisioning_shared_secret: disable
  161. # Minimum severity of journal log messages.
  162. # Valid values: fatal, error, warn, info, debug, trace
  163. matrix_bridge_steam_logging_level: 'warn'
  164. # Whether or not metrics endpoint should be enabled.
  165. # Enabling them is usually enough for a local (in-container) Prometheus to consume them.
  166. # If metrics need to be consumed by another (external) Prometheus server, consider exposing them via `matrix_bridge_steam_metrics_proxying_enabled`.
  167. matrix_bridge_steam_metrics_enabled: false
  168. # Controls whether metrics should be exposed on a public URL.
  169. matrix_bridge_steam_metrics_proxying_enabled: false
  170. matrix_bridge_steam_metrics_proxying_hostname: ''
  171. matrix_bridge_steam_metrics_proxying_path_prefix: ''
  172. # Default configuration template which covers the generic use case.
  173. # You can customize it by controlling the various variables inside it.
  174. #
  175. # For a more advanced customization, you can extend the default (see `matrix_bridge_steam_configuration_extension_yaml`)
  176. # or completely replace this variable with your own template.
  177. matrix_bridge_steam_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  178. matrix_bridge_steam_configuration_extension_yaml: |
  179. # Your custom YAML configuration goes here.
  180. # This configuration extends the default starting configuration (`matrix_bridge_steam_configuration_yaml`).
  181. #
  182. # You can override individual variables from the default configuration, or introduce new ones.
  183. #
  184. # If you need something more special, you can take full control by
  185. # completely redefining `matrix_bridge_steam_configuration_yaml`.
  186. matrix_bridge_steam_configuration_extension: "{{ matrix_bridge_steam_configuration_extension_yaml | from_yaml if matrix_bridge_steam_configuration_extension_yaml | from_yaml is mapping else {} }}"
  187. # Holds the final configuration (a combination of the default and its extension).
  188. # You most likely don't need to touch this variable. Instead, see `matrix_bridge_steam_configuration_yaml`.
  189. matrix_bridge_steam_configuration: "{{ matrix_bridge_steam_configuration_yaml | from_yaml | combine(matrix_bridge_steam_configuration_extension, recursive=True) }}"
  190. matrix_bridge_steam_registration_yaml: |
  191. id: steam
  192. as_token: "{{ matrix_bridge_steam_appservice_token }}"
  193. hs_token: "{{ matrix_bridge_steam_homeserver_token }}"
  194. namespaces:
  195. users:
  196. - exclusive: true
  197. regex: '^@steam_.+:{{ matrix_bridge_steam_homeserver_domain | regex_escape }}$'
  198. - exclusive: true
  199. regex: '^@{{ matrix_bridge_steam_appservice_bot_username | regex_escape }}:{{ matrix_bridge_steam_homeserver_domain | regex_escape }}$'
  200. url: {{ matrix_bridge_steam_appservice_address }}
  201. sender_localpart: _bot_{{ matrix_bridge_steam_appservice_bot_username }}
  202. rate_limited: false
  203. de.sorunome.msc2409.push_ephemeral: true
  204. receive_ephemeral: true
  205. io.element.msc4190: {{ matrix_bridge_steam_msc4190_enabled | to_json }}
  206. matrix_bridge_steam_registration: "{{ matrix_bridge_steam_registration_yaml | from_yaml }}"
  207. # Enable End-to-bridge encryption
  208. matrix_bridge_steam_bridge_encryption_allow: "{{ matrix_bridges_encryption_enabled }}"
  209. matrix_bridge_steam_bridge_encryption_default: "{{ matrix_bridges_encryption_default }}"
  210. matrix_bridge_steam_bridge_encryption_require: false
  211. matrix_bridge_steam_bridge_encryption_appservice: false
  212. matrix_bridge_steam_bridge_encryption_key_sharing_allow: "{{ matrix_bridge_steam_bridge_encryption_allow }}"
  213. matrix_bridge_steam_bridge_encryption_pickle_key: mautrix.bridge.e2ee
  214. # matrix_bridge_steam_restart_necessary controls whether the service
  215. # will be restarted (when true) or merely started (when false) by the
  216. # systemd service manager role (when conditional restart is enabled).
  217. #
  218. # This value is automatically computed during installation based on whether
  219. # any configuration files, the systemd service file, or the container image changed.
  220. # The default of `false` means "no restart needed" — appropriate when the role's
  221. # installation tasks haven't run (e.g., due to --tags skipping them).
  222. matrix_bridge_steam_restart_necessary: false