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

264 строки
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_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. # Whether this bridge's HTTP API (including the provisioning API) is exposed at a
  80. # public path via Traefik. Disabled by default. When enabled, requests to
  81. # https://<matrix_bridge_steam_exposure_hostname><matrix_bridge_steam_exposure_path_prefix>/...
  82. # are forwarded to the bridge with that path prefix stripped.
  83. matrix_bridge_steam_exposure_enabled: false
  84. matrix_bridge_steam_exposure_hostname: ''
  85. matrix_bridge_steam_exposure_path_prefix: ''
  86. matrix_bridge_steam_container_labels_exposure_enabled: "{{ matrix_bridge_steam_exposure_enabled }}"
  87. matrix_bridge_steam_container_labels_exposure_traefik_rule: "Host(`{{ matrix_bridge_steam_exposure_hostname }}`) && PathPrefix(`{{ matrix_bridge_steam_exposure_path_prefix }}`)"
  88. matrix_bridge_steam_container_labels_exposure_traefik_priority: 0
  89. matrix_bridge_steam_container_labels_exposure_traefik_entrypoints: "{{ matrix_bridge_steam_container_labels_traefik_entrypoints }}"
  90. matrix_bridge_steam_container_labels_exposure_traefik_tls: "{{ matrix_bridge_steam_container_labels_exposure_traefik_entrypoints != 'web' }}"
  91. matrix_bridge_steam_container_labels_exposure_traefik_tls_certResolver: "{{ matrix_bridge_steam_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  92. # matrix_bridge_steam_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  93. # See `../templates/labels.j2` for details.
  94. #
  95. # Example:
  96. # matrix_bridge_steam_container_labels_additional_labels: |
  97. # my.label=1
  98. # another.label="here"
  99. matrix_bridge_steam_container_labels_additional_labels: ''
  100. # A list of extra arguments to pass to the container
  101. matrix_bridge_steam_container_extra_arguments: []
  102. # List of systemd services that matrix-steam-bridge.service depends on.
  103. 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 }}"
  104. matrix_bridge_steam_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  105. matrix_bridge_steam_systemd_required_services_list_auto: []
  106. matrix_bridge_steam_systemd_required_services_list_custom: []
  107. # List of systemd services that matrix-steam-bridge.service wants
  108. matrix_bridge_steam_systemd_wanted_services_list: []
  109. matrix_bridge_steam_appservice_token: ''
  110. matrix_bridge_steam_homeserver_token: ''
  111. # Whether or not created rooms should have federation enabled.
  112. # If false, created portal rooms will never be federated.
  113. matrix_bridge_steam_matrix_federate_rooms: false
  114. # Bridge configuration options
  115. # Should every user have their own portals rather than sharing them?
  116. matrix_bridge_steam_bridge_split_portals: false
  117. # Cleanup on logout configuration
  118. matrix_bridge_steam_bridge_cleanup_on_logout_enabled: false
  119. # Valid values for cleanup actions: nothing, kick, unbridge, delete
  120. # nothing - Do nothing, let the user stay in the portals
  121. # kick - Remove the user from the portal rooms, but don't delete them
  122. # unbridge - Remove all ghosts in the room and disassociate it from the remote chat
  123. # delete - Remove all ghosts and users from the room (i.e. delete it)
  124. matrix_bridge_steam_bridge_cleanup_on_logout_manual_private: nothing
  125. matrix_bridge_steam_bridge_cleanup_on_logout_manual_relayed: nothing
  126. matrix_bridge_steam_bridge_cleanup_on_logout_manual_shared_no_users: nothing
  127. matrix_bridge_steam_bridge_cleanup_on_logout_manual_shared_has_users: nothing
  128. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_private: nothing
  129. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_relayed: nothing
  130. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_shared_no_users: nothing
  131. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_shared_has_users: nothing
  132. # Homeserver configuration options
  133. # Does the homeserver support MSC2246 (async media uploads)?
  134. matrix_bridge_steam_homeserver_async_media: false
  135. # Database-related configuration fields.
  136. #
  137. # To use Postgres:
  138. # - adjust your database credentials via the `matrix_bridge_steam_postgres_*` variables
  139. matrix_bridge_steam_database_engine: 'postgres'
  140. matrix_bridge_steam_database_username: 'matrix_steam_bridge'
  141. matrix_bridge_steam_database_password: 'some-password'
  142. matrix_bridge_steam_database_hostname: ''
  143. matrix_bridge_steam_database_port: 5432
  144. matrix_bridge_steam_database_name: 'matrix_steam_bridge'
  145. matrix_bridge_steam_database_sslmode: disable
  146. 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 }}'
  147. matrix_bridge_steam_database_uri: "{{ {
  148. 'postgres': matrix_bridge_steam_database_connection_string,
  149. }[matrix_bridge_steam_database_engine] }}"
  150. matrix_bridge_steam_double_puppet_secrets: "{{ matrix_bridge_steam_double_puppet_secrets_auto | combine(matrix_bridge_steam_double_puppet_secrets_custom) }}"
  151. matrix_bridge_steam_double_puppet_secrets_auto: {}
  152. matrix_bridge_steam_double_puppet_secrets_custom: {}
  153. matrix_bridge_steam_appservice_bot_username: steambot
  154. matrix_bridge_steam_appservice_bot_displayname: Steam bridge bot
  155. matrix_bridge_steam_appservice_bot_avatar: mxc://shadowdrake.org/EeNKAcrmByNubPwoyceQsBaN
  156. matrix_bridge_steam_backfill_enabled: true
  157. # Maximum number of messages to backfill in empty rooms
  158. matrix_bridge_steam_backfill_max_initial_messages: 50
  159. # Maximum number of missed messages to backfill after bridge restarts
  160. matrix_bridge_steam_backfill_max_catchup_messages: 500
  161. # Shared secret for authentication of provisioning API requests.
  162. # If set to "disable", the provisioning API will be disabled.
  163. matrix_bridge_steam_provisioning_shared_secret: disable
  164. # Minimum severity of journal log messages.
  165. # Valid values: fatal, error, warn, info, debug, trace
  166. matrix_bridge_steam_logging_level: 'warn'
  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_bridge_steam_configuration_extension_yaml`)
  171. # or completely replace this variable with your own template.
  172. matrix_bridge_steam_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  173. matrix_bridge_steam_configuration_extension_yaml: |
  174. # Your custom YAML configuration goes here.
  175. # This configuration extends the default starting configuration (`matrix_bridge_steam_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_bridge_steam_configuration_yaml`.
  181. 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 {} }}"
  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_bridge_steam_configuration_yaml`.
  184. matrix_bridge_steam_configuration: "{{ matrix_bridge_steam_configuration_yaml | from_yaml | combine(matrix_bridge_steam_configuration_extension, recursive=True) }}"
  185. matrix_bridge_steam_registration_yaml: |
  186. id: steam
  187. as_token: "{{ matrix_bridge_steam_appservice_token }}"
  188. hs_token: "{{ matrix_bridge_steam_homeserver_token }}"
  189. namespaces:
  190. users:
  191. - exclusive: true
  192. regex: '^@steam_.+:{{ matrix_bridge_steam_homeserver_domain | regex_escape }}$'
  193. - exclusive: true
  194. regex: '^@{{ matrix_bridge_steam_appservice_bot_username | regex_escape }}:{{ matrix_bridge_steam_homeserver_domain | regex_escape }}$'
  195. url: {{ matrix_bridge_steam_appservice_address }}
  196. sender_localpart: _bot_{{ matrix_bridge_steam_appservice_bot_username }}
  197. rate_limited: false
  198. de.sorunome.msc2409.push_ephemeral: true
  199. receive_ephemeral: true
  200. io.element.msc4190: {{ matrix_bridge_steam_msc4190_enabled | to_json }}
  201. matrix_bridge_steam_registration: "{{ matrix_bridge_steam_registration_yaml | from_yaml }}"
  202. # Enable End-to-bridge encryption
  203. matrix_bridge_steam_bridge_encryption_allow: "{{ matrix_bridges_encryption_enabled }}"
  204. matrix_bridge_steam_bridge_encryption_default: "{{ matrix_bridges_encryption_default }}"
  205. matrix_bridge_steam_bridge_encryption_require: false
  206. matrix_bridge_steam_bridge_encryption_appservice: false
  207. matrix_bridge_steam_bridge_encryption_key_sharing_allow: "{{ matrix_bridge_steam_bridge_encryption_allow }}"
  208. matrix_bridge_steam_bridge_encryption_pickle_key: mautrix.bridge.e2ee
  209. # matrix_bridge_steam_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_bridge_steam_restart_necessary: false