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

197 строки
12 KiB

  1. ---
  2. # mautrix-googlechat is a Matrix <-> googlechat bridge
  3. # Project source code URL: https://github.com/mautrix/googlechat
  4. matrix_mautrix_googlechat_enabled: true
  5. matrix_mautrix_googlechat_container_image_self_build: false
  6. matrix_mautrix_googlechat_container_image_self_build_repo: "https://github.com/mautrix/googlechat.git"
  7. matrix_mautrix_googlechat_container_image_self_build_repo_version: "{{ 'master' if matrix_mautrix_googlechat_version == 'latest' else matrix_mautrix_googlechat_version }}"
  8. # renovate: datasource=docker depName=dock.mau.dev/mautrix/googlechat
  9. matrix_mautrix_googlechat_version: v0.5.2
  10. # See: https://mau.dev/mautrix/googlechat/container_registry
  11. matrix_mautrix_googlechat_docker_image: "{{ matrix_mautrix_googlechat_docker_image_registry_prefix }}mautrix/googlechat:{{ matrix_mautrix_googlechat_version }}"
  12. matrix_mautrix_googlechat_docker_image_registry_prefix: "{{ 'localhost/' if matrix_mautrix_googlechat_container_image_self_build else matrix_mautrix_googlechat_docker_image_registry_prefix_upstream }}"
  13. matrix_mautrix_googlechat_docker_image_registry_prefix_upstream: "{{ matrix_mautrix_googlechat_docker_image_registry_prefix_upstream_default }}"
  14. matrix_mautrix_googlechat_docker_image_registry_prefix_upstream_default: "dock.mau.dev/"
  15. matrix_mautrix_googlechat_docker_image_force_pull: "{{ matrix_mautrix_googlechat_docker_image.endswith(':latest') }}"
  16. matrix_mautrix_googlechat_base_path: "{{ matrix_base_data_path }}/mautrix-googlechat"
  17. matrix_mautrix_googlechat_config_path: "{{ matrix_mautrix_googlechat_base_path }}/config"
  18. matrix_mautrix_googlechat_data_path: "{{ matrix_mautrix_googlechat_base_path }}/data"
  19. matrix_mautrix_googlechat_docker_src_files_path: "{{ matrix_mautrix_googlechat_base_path }}/docker-src"
  20. matrix_mautrix_googlechat_public_endpoint: '/mautrix-googlechat'
  21. matrix_mautrix_googlechat_homeserver_address: ""
  22. matrix_mautrix_googlechat_homeserver_domain: '{{ matrix_domain }}'
  23. matrix_mautrix_googlechat_appservice_address: 'http://matrix-mautrix-googlechat:8080'
  24. matrix_mautrix_googlechat_command_prefix: "!gc"
  25. # Controls whether the matrix-mautrix-googlechat container exposes its HTTP port (tcp/8080 in the container).
  26. #
  27. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9007"), or empty string to not expose.
  28. matrix_mautrix_googlechat_container_http_host_bind_port: ''
  29. matrix_mautrix_googlechat_container_network: ""
  30. matrix_mautrix_googlechat_container_additional_networks: "{{ matrix_mautrix_googlechat_container_additional_networks_auto + matrix_mautrix_googlechat_container_additional_networks_custom }}"
  31. matrix_mautrix_googlechat_container_additional_networks_auto: []
  32. matrix_mautrix_googlechat_container_additional_networks_custom: []
  33. # matrix_mautrix_googlechat_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  34. # See `../templates/labels.j2` for details.
  35. #
  36. # To inject your own other container labels, see `matrix_mautrix_googlechat_container_labels_additional_labels`.
  37. matrix_mautrix_googlechat_container_labels_traefik_enabled: true
  38. matrix_mautrix_googlechat_container_labels_traefik_docker_network: "{{ matrix_mautrix_googlechat_container_network }}"
  39. matrix_mautrix_googlechat_container_labels_traefik_entrypoints: web-secure
  40. matrix_mautrix_googlechat_container_labels_traefik_tls_certResolver: default # noqa var-naming
  41. # Controls whether labels will be added that expose mautrix-googlechat's public endpoint
  42. matrix_mautrix_googlechat_container_labels_public_endpoint_enabled: true
  43. matrix_mautrix_googlechat_container_labels_public_endpoint_hostname: ""
  44. matrix_mautrix_googlechat_container_labels_public_endpoint_path_prefix: "{{ matrix_mautrix_googlechat_public_endpoint }}"
  45. matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_rule: "Host(`{{ matrix_mautrix_googlechat_container_labels_public_endpoint_hostname }}`) && PathPrefix(`{{ matrix_mautrix_googlechat_container_labels_public_endpoint_path_prefix }}`)"
  46. matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_priority: 0
  47. matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_entrypoints: "{{ matrix_mautrix_googlechat_container_labels_traefik_entrypoints }}"
  48. matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_tls: "{{ matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_entrypoints != 'web' }}"
  49. matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_tls_certResolver: "{{ matrix_mautrix_googlechat_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  50. # Controls whether labels will be added that expose mautrix-googlechat's metrics
  51. matrix_mautrix_googlechat_container_labels_metrics_enabled: "{{ matrix_mautrix_googlechat_metrics_enabled and matrix_mautrix_googlechat_metrics_proxying_enabled }}"
  52. matrix_mautrix_googlechat_container_labels_metrics_traefik_rule: "Host(`{{ matrix_mautrix_googlechat_metrics_proxying_hostname }}`) && PathPrefix(`{{ matrix_mautrix_googlechat_metrics_proxying_path_prefix }}`)"
  53. matrix_mautrix_googlechat_container_labels_metrics_traefik_priority: 0
  54. matrix_mautrix_googlechat_container_labels_metrics_traefik_entrypoints: "{{ matrix_mautrix_googlechat_container_labels_traefik_entrypoints }}"
  55. matrix_mautrix_googlechat_container_labels_metrics_traefik_tls: "{{ matrix_mautrix_googlechat_container_labels_metrics_traefik_entrypoints != 'web' }}"
  56. matrix_mautrix_googlechat_container_labels_metrics_traefik_tls_certResolver: "{{ matrix_mautrix_googlechat_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  57. matrix_mautrix_googlechat_container_labels_metrics_middleware_basic_auth_enabled: false
  58. # See: https://doc.traefik.io/traefik/middlewares/http/basicauth/#users
  59. matrix_mautrix_googlechat_container_labels_metrics_middleware_basic_auth_users: ''
  60. # matrix_mautrix_googlechat_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  61. # See `../templates/labels.j2` for details.
  62. #
  63. # Example:
  64. # matrix_mautrix_googlechat_container_labels_additional_labels: |
  65. # my.label=1
  66. # another.label="here"
  67. matrix_mautrix_googlechat_container_labels_additional_labels: ''
  68. # A list of extra arguments to pass to the container
  69. matrix_mautrix_googlechat_container_extra_arguments: []
  70. # List of systemd services that matrix-mautrix-googlechat.service depends on.
  71. matrix_mautrix_googlechat_systemd_required_services_list: "{{ matrix_mautrix_googlechat_systemd_required_services_list_default + matrix_mautrix_googlechat_systemd_required_services_list_auto + matrix_mautrix_googlechat_systemd_required_services_list_custom }}"
  72. matrix_mautrix_googlechat_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  73. matrix_mautrix_googlechat_systemd_required_services_list_auto: []
  74. matrix_mautrix_googlechat_systemd_required_services_list_custom: []
  75. # List of systemd services that matrix-mautrix-googlechat.service wants
  76. matrix_mautrix_googlechat_systemd_wanted_services_list: []
  77. matrix_mautrix_googlechat_appservice_token: ''
  78. matrix_mautrix_googlechat_homeserver_token: ''
  79. # Whether or not metrics endpoint should be enabled.
  80. # Enabling them is usually enough for a local (in-container) Prometheus to consume them.
  81. # If metrics need to be consumed by another (external) Prometheus server, consider exposing them via `matrix_mautrix_googlechat_metrics_proxying_enabled`.
  82. matrix_mautrix_googlechat_metrics_enabled: false
  83. # Controls whether metrics should be proxied (exposed) on a public URL.
  84. matrix_mautrix_googlechat_metrics_proxying_enabled: false
  85. matrix_mautrix_googlechat_metrics_proxying_hostname: ''
  86. matrix_mautrix_googlechat_metrics_proxying_path_prefix: ''
  87. # Whether or not created rooms should have federation enabled.
  88. # If false, created portal rooms will never be federated.
  89. matrix_mautrix_googlechat_federate_rooms: true
  90. matrix_mautrix_googlechat_bridge_permissions: |
  91. {{
  92. {matrix_mautrix_googlechat_homeserver_domain: 'user'}
  93. | combine({matrix_admin: 'admin'} if matrix_admin else {})
  94. }}
  95. # Database-related configuration fields.
  96. #
  97. # To use SQLite, stick to these defaults.
  98. #
  99. # To use Postgres:
  100. # - change the engine (`matrix_mautrix_googlechat_database_engine: 'postgres'`)
  101. # - adjust your database credentials via the `matrix_mautrix_googlechat_database_*` variables
  102. matrix_mautrix_googlechat_database_engine: 'sqlite'
  103. matrix_mautrix_googlechat_sqlite_database_path_local: "{{ matrix_mautrix_googlechat_data_path }}/mautrix-googlechat.db"
  104. matrix_mautrix_googlechat_sqlite_database_path_in_container: "/data/mautrix-googlechat.db"
  105. matrix_mautrix_googlechat_database_username: 'matrix_mautrix_googlechat'
  106. matrix_mautrix_googlechat_database_password: 'some-password'
  107. matrix_mautrix_googlechat_database_hostname: ''
  108. matrix_mautrix_googlechat_database_port: 5432
  109. matrix_mautrix_googlechat_database_name: 'matrix_mautrix_googlechat'
  110. matrix_mautrix_googlechat_database_connection_string: 'postgres://{{ matrix_mautrix_googlechat_database_username }}:{{ matrix_mautrix_googlechat_database_password }}@{{ matrix_mautrix_googlechat_database_hostname }}:{{ matrix_mautrix_googlechat_database_port }}/{{ matrix_mautrix_googlechat_database_name }}'
  111. matrix_mautrix_googlechat_appservice_database: "{{
  112. {
  113. 'sqlite': ('sqlite:///' + matrix_mautrix_googlechat_sqlite_database_path_in_container),
  114. 'postgres': matrix_mautrix_googlechat_database_connection_string,
  115. }[matrix_mautrix_googlechat_database_engine]
  116. }}"
  117. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth) or Appservice Double Puppet.
  118. matrix_mautrix_googlechat_login_shared_secret: ''
  119. matrix_mautrix_googlechat_appservice_bot_username: googlechatbot
  120. # Specifies the default log level for all bridge loggers.
  121. matrix_mautrix_googlechat_logging_level: WARNING
  122. # Default configuration template which covers the generic use case.
  123. # You can customize it by controlling the various variables inside it.
  124. #
  125. # For a more advanced customization, you can extend the default (see `matrix_mautrix_googlechat_configuration_extension_yaml`)
  126. # or completely replace this variable with your own template.
  127. matrix_mautrix_googlechat_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  128. matrix_mautrix_googlechat_configuration_extension_yaml: |
  129. # Your custom YAML configuration goes here.
  130. # This configuration extends the default starting configuration (`matrix_mautrix_googlechat_configuration_yaml`).
  131. #
  132. # You can override individual variables from the default configuration, or introduce new ones.
  133. #
  134. # If you need something more special, you can take full control by
  135. # completely redefining `matrix_mautrix_googlechat_configuration_yaml`.
  136. matrix_mautrix_googlechat_configuration_extension: "{{ matrix_mautrix_googlechat_configuration_extension_yaml | from_yaml if matrix_mautrix_googlechat_configuration_extension_yaml | from_yaml is mapping else {} }}"
  137. # Holds the final configuration (a combination of the default and its extension).
  138. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_googlechat_configuration_yaml`.
  139. matrix_mautrix_googlechat_configuration: "{{ matrix_mautrix_googlechat_configuration_yaml | from_yaml | combine(matrix_mautrix_googlechat_configuration_extension, recursive=True) }}"
  140. matrix_mautrix_googlechat_registration_yaml: |
  141. id: googlechat
  142. as_token: "{{ matrix_mautrix_googlechat_appservice_token }}"
  143. hs_token: "{{ matrix_mautrix_googlechat_homeserver_token }}"
  144. namespaces:
  145. users:
  146. - exclusive: true
  147. regex: '^@googlechat_.+:{{ matrix_mautrix_googlechat_homeserver_domain | regex_escape }}$'
  148. - exclusive: true
  149. regex: '^@{{ matrix_mautrix_googlechat_appservice_bot_username | regex_escape }}:{{ matrix_mautrix_googlechat_homeserver_domain | regex_escape }}$'
  150. url: {{ matrix_mautrix_googlechat_appservice_address }}
  151. # See https://github.com/mautrix/signal/issues/43
  152. sender_localpart: _bot_{{ matrix_mautrix_googlechat_appservice_bot_username }}
  153. rate_limited: false
  154. de.sorunome.msc2409.push_ephemeral: true
  155. matrix_mautrix_googlechat_registration: "{{ matrix_mautrix_googlechat_registration_yaml | from_yaml }}"
  156. # Enable End-to-bridge encryption
  157. matrix_mautrix_googlechat_bridge_encryption_allow: "{{ matrix_bridges_encryption_enabled }}"
  158. matrix_mautrix_googlechat_bridge_encryption_default: "{{ matrix_bridges_encryption_default }}"