Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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