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

249 строки
13 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. # matrix_bridge_steam_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  80. # See `../templates/labels.j2` for details.
  81. #
  82. # Example:
  83. # matrix_bridge_steam_container_labels_additional_labels: |
  84. # my.label=1
  85. # another.label="here"
  86. matrix_bridge_steam_container_labels_additional_labels: ''
  87. # A list of extra arguments to pass to the container
  88. matrix_bridge_steam_container_extra_arguments: []
  89. # List of systemd services that matrix-steam-bridge.service depends on.
  90. 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 }}"
  91. matrix_bridge_steam_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  92. matrix_bridge_steam_systemd_required_services_list_auto: []
  93. matrix_bridge_steam_systemd_required_services_list_custom: []
  94. # List of systemd services that matrix-steam-bridge.service wants
  95. matrix_bridge_steam_systemd_wanted_services_list: []
  96. matrix_bridge_steam_appservice_token: ''
  97. matrix_bridge_steam_homeserver_token: ''
  98. # Whether or not created rooms should have federation enabled.
  99. # If false, created portal rooms will never be federated.
  100. matrix_bridge_steam_matrix_federate_rooms: false
  101. # Bridge configuration options
  102. # Should every user have their own portals rather than sharing them?
  103. matrix_bridge_steam_bridge_split_portals: false
  104. # Cleanup on logout configuration
  105. matrix_bridge_steam_bridge_cleanup_on_logout_enabled: false
  106. # Valid values for cleanup actions: nothing, kick, unbridge, delete
  107. # nothing - Do nothing, let the user stay in the portals
  108. # kick - Remove the user from the portal rooms, but don't delete them
  109. # unbridge - Remove all ghosts in the room and disassociate it from the remote chat
  110. # delete - Remove all ghosts and users from the room (i.e. delete it)
  111. matrix_bridge_steam_bridge_cleanup_on_logout_manual_private: nothing
  112. matrix_bridge_steam_bridge_cleanup_on_logout_manual_relayed: nothing
  113. matrix_bridge_steam_bridge_cleanup_on_logout_manual_shared_no_users: nothing
  114. matrix_bridge_steam_bridge_cleanup_on_logout_manual_shared_has_users: nothing
  115. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_private: nothing
  116. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_relayed: nothing
  117. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_shared_no_users: nothing
  118. matrix_bridge_steam_bridge_cleanup_on_logout_bad_credentials_shared_has_users: nothing
  119. # Homeserver configuration options
  120. # Does the homeserver support MSC2246 (async media uploads)?
  121. matrix_bridge_steam_homeserver_async_media: false
  122. # Database-related configuration fields.
  123. #
  124. # To use Postgres:
  125. # - adjust your database credentials via the `matrix_bridge_steam_postgres_*` variables
  126. matrix_bridge_steam_database_engine: 'postgres'
  127. matrix_bridge_steam_database_username: 'matrix_steam_bridge'
  128. matrix_bridge_steam_database_password: 'some-password'
  129. matrix_bridge_steam_database_hostname: ''
  130. matrix_bridge_steam_database_port: 5432
  131. matrix_bridge_steam_database_name: 'matrix_steam_bridge'
  132. matrix_bridge_steam_database_sslmode: disable
  133. 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 }}'
  134. matrix_bridge_steam_database_uri: "{{ {
  135. 'postgres': matrix_bridge_steam_database_connection_string,
  136. }[matrix_bridge_steam_database_engine] }}"
  137. matrix_bridge_steam_double_puppet_secrets: "{{ matrix_bridge_steam_double_puppet_secrets_auto | combine(matrix_bridge_steam_double_puppet_secrets_custom) }}"
  138. matrix_bridge_steam_double_puppet_secrets_auto: {}
  139. matrix_bridge_steam_double_puppet_secrets_custom: {}
  140. matrix_bridge_steam_appservice_bot_username: steambot
  141. matrix_bridge_steam_appservice_bot_displayname: Steam bridge bot
  142. matrix_bridge_steam_appservice_bot_avatar: mxc://shadowdrake.org/EeNKAcrmByNubPwoyceQsBaN
  143. matrix_bridge_steam_backfill_enabled: true
  144. # Maximum number of messages to backfill in empty rooms
  145. matrix_bridge_steam_backfill_max_initial_messages: 50
  146. # Maximum number of missed messages to backfill after bridge restarts
  147. matrix_bridge_steam_backfill_max_catchup_messages: 500
  148. # Shared secret for authentication of provisioning API requests.
  149. # If set to "disable", the provisioning API will be disabled.
  150. matrix_bridge_steam_provisioning_shared_secret: disable
  151. # Minimum severity of journal log messages.
  152. # Valid values: fatal, error, warn, info, debug, trace
  153. matrix_bridge_steam_logging_level: 'warn'
  154. # Default configuration template which covers the generic use case.
  155. # You can customize it by controlling the various variables inside it.
  156. #
  157. # For a more advanced customization, you can extend the default (see `matrix_bridge_steam_configuration_extension_yaml`)
  158. # or completely replace this variable with your own template.
  159. matrix_bridge_steam_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  160. matrix_bridge_steam_configuration_extension_yaml: |
  161. # Your custom YAML configuration goes here.
  162. # This configuration extends the default starting configuration (`matrix_bridge_steam_configuration_yaml`).
  163. #
  164. # You can override individual variables from the default configuration, or introduce new ones.
  165. #
  166. # If you need something more special, you can take full control by
  167. # completely redefining `matrix_bridge_steam_configuration_yaml`.
  168. 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 {} }}"
  169. # Holds the final configuration (a combination of the default and its extension).
  170. # You most likely don't need to touch this variable. Instead, see `matrix_bridge_steam_configuration_yaml`.
  171. matrix_bridge_steam_configuration: "{{ matrix_bridge_steam_configuration_yaml | from_yaml | combine(matrix_bridge_steam_configuration_extension, recursive=True) }}"
  172. matrix_bridge_steam_registration_yaml: |
  173. id: steam
  174. as_token: "{{ matrix_bridge_steam_appservice_token }}"
  175. hs_token: "{{ matrix_bridge_steam_homeserver_token }}"
  176. namespaces:
  177. users:
  178. - exclusive: true
  179. regex: '^@steam_.+:{{ matrix_bridge_steam_homeserver_domain | regex_escape }}$'
  180. - exclusive: true
  181. regex: '^@{{ matrix_bridge_steam_appservice_bot_username | regex_escape }}:{{ matrix_bridge_steam_homeserver_domain | regex_escape }}$'
  182. url: {{ matrix_bridge_steam_appservice_address }}
  183. sender_localpart: _bot_{{ matrix_bridge_steam_appservice_bot_username }}
  184. rate_limited: false
  185. de.sorunome.msc2409.push_ephemeral: true
  186. receive_ephemeral: true
  187. io.element.msc4190: {{ matrix_bridge_steam_msc4190_enabled | to_json }}
  188. matrix_bridge_steam_registration: "{{ matrix_bridge_steam_registration_yaml | from_yaml }}"
  189. # Enable End-to-bridge encryption
  190. matrix_bridge_steam_bridge_encryption_allow: "{{ matrix_bridges_encryption_enabled }}"
  191. matrix_bridge_steam_bridge_encryption_default: "{{ matrix_bridges_encryption_default }}"
  192. matrix_bridge_steam_bridge_encryption_require: false
  193. matrix_bridge_steam_bridge_encryption_appservice: false
  194. matrix_bridge_steam_bridge_encryption_key_sharing_allow: "{{ matrix_bridge_steam_bridge_encryption_allow }}"
  195. matrix_bridge_steam_bridge_encryption_pickle_key: mautrix.bridge.e2ee
  196. # matrix_bridge_steam_restart_necessary controls whether the service
  197. # will be restarted (when true) or merely started (when false) by the
  198. # systemd service manager role (when conditional restart is enabled).
  199. #
  200. # This value is automatically computed during installation based on whether
  201. # any configuration files, the systemd service file, or the container image changed.
  202. # The default of `false` means "no restart needed" — appropriate when the role's
  203. # installation tasks haven't run (e.g., due to --tags skipping them).
  204. matrix_bridge_steam_restart_necessary: false