Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

209 line
10 KiB

  1. # SPDX-FileCopyrightText: 2022 - 2024 Nikita Chernyi
  2. # SPDX-FileCopyrightText: 2022 - 2025 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  4. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. # Buscarron is a Web forms (HTTP POST) to Matrix service.
  9. # Project source code URL: https://github.com/etkecc/buscarron
  10. matrix_bot_buscarron_enabled: true
  11. # renovate: datasource=docker depName=ghcr.io/etkecc/buscarron
  12. matrix_bot_buscarron_version: v1.4.3
  13. # The hostname at which Buscarron is served.
  14. matrix_bot_buscarron_hostname: ''
  15. # The path at which Buscarron is exposed.
  16. # This value must either be `/` or not end with a slash (e.g. `/buscarron`).
  17. matrix_bot_buscarron_path_prefix: /
  18. # The path at which Buscarron will expose metrics
  19. # This value must either be `/` or not end with a slash (e.g. `/metrics`).
  20. matrix_bot_buscarron_metrics_path: /metrics
  21. matrix_bot_buscarron_base_path: "{{ matrix_base_data_path }}/buscarron"
  22. matrix_bot_buscarron_config_path: "{{ matrix_bot_buscarron_base_path }}/config"
  23. matrix_bot_buscarron_data_path: "{{ matrix_bot_buscarron_base_path }}/data"
  24. matrix_bot_buscarron_data_store_path: "{{ matrix_bot_buscarron_data_path }}/store"
  25. matrix_bot_buscarron_container_image_self_build: false
  26. matrix_bot_buscarron_container_repo: "https://github.com/etkecc/buscarron.git"
  27. matrix_bot_buscarron_container_repo_version: "{{ matrix_bot_buscarron_version }}"
  28. matrix_bot_buscarron_container_src_files_path: "{{ matrix_base_data_path }}/buscarron/docker-src"
  29. matrix_bot_buscarron_container_image: "{{ matrix_bot_buscarron_container_image_registry_prefix }}etkecc/buscarron:{{ matrix_bot_buscarron_version }}"
  30. matrix_bot_buscarron_container_image_registry_prefix: "{{ 'localhost/' if matrix_bot_buscarron_container_image_self_build else matrix_bot_buscarron_container_image_registry_prefix_upstream }}"
  31. matrix_bot_buscarron_container_image_registry_prefix_upstream: "{{ matrix_bot_buscarron_container_image_registry_prefix_upstream_default }}"
  32. matrix_bot_buscarron_container_image_registry_prefix_upstream_default: "ghcr.io/"
  33. # The base container network. It will be auto-created by this role if it doesn't exist already.
  34. matrix_bot_buscarron_container_network: matrix-bot-buscarron
  35. # A list of additional container networks that the container would be connected to.
  36. # The role does not create these networks, so make sure they already exist.
  37. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  38. matrix_bot_buscarron_container_additional_networks: "{{ matrix_bot_buscarron_container_additional_networks_auto + matrix_bot_buscarron_container_additional_networks_custom }}"
  39. matrix_bot_buscarron_container_additional_networks_auto: []
  40. matrix_bot_buscarron_container_additional_networks_custom: []
  41. # /metrics login
  42. matrix_bot_buscarron_metrics_login: ''
  43. # /metrics password
  44. matrix_bot_buscarron_metrics_password: ''
  45. # /metrics allowed ips
  46. matrix_bot_buscarron_metrics_ips: []
  47. # healthchecks.io integration
  48. matrix_bot_buscarron_hc_url: '' # default is https://hc-ping.com (healthchecks.io)
  49. matrix_bot_buscarron_hc_uuid: '' # check UUID
  50. # redmine integration
  51. matrix_bot_buscarron_redmine_host: '' # e.g. https://redmine.example.com
  52. matrix_bot_buscarron_redmine_apikey: ''
  53. matrix_bot_buscarron_redmine_project: '' # project identifier (e.g., my-project)
  54. matrix_bot_buscarron_redmine_trackerid: '' # task tracker ID (e.g., 1)
  55. matrix_bot_buscarron_redmine_statusid: '' # task status ID (e.g., 1)
  56. # matrix_bot_buscarron_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  57. # See `../templates/labels.j2` for details.
  58. #
  59. # To inject your own other container labels, see `matrix_bot_buscarron_container_labels_additional_labels`.
  60. matrix_bot_buscarron_container_labels_traefik_enabled: true
  61. matrix_bot_buscarron_container_labels_traefik_docker_network: "{{ matrix_bot_buscarron_container_network }}"
  62. matrix_bot_buscarron_container_labels_traefik_hostname: "{{ matrix_bot_buscarron_hostname }}"
  63. # The path prefix must either be `/` or not end with a slash (e.g. `/buscarron`).
  64. matrix_bot_buscarron_container_labels_traefik_path_prefix: "{{ matrix_bot_buscarron_path_prefix }}"
  65. matrix_bot_buscarron_container_labels_traefik_rule: "Host(`{{ matrix_bot_buscarron_container_labels_traefik_hostname }}`){% if matrix_bot_buscarron_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ matrix_bot_buscarron_container_labels_traefik_path_prefix }}`){% endif %}"
  66. matrix_bot_buscarron_container_labels_traefik_metrics_path: "{{ matrix_bot_buscarron_metrics_path }}"
  67. matrix_bot_buscarron_container_labels_traefik_metrics_rule: "Host(`{{ matrix_bot_buscarron_container_labels_traefik_hostname }}`) && Path(`{{ matrix_bot_buscarron_container_labels_traefik_metrics_path }}`)"
  68. matrix_bot_buscarron_container_labels_traefik_priority: 0
  69. matrix_bot_buscarron_container_labels_traefik_entrypoints: web-secure
  70. matrix_bot_buscarron_container_labels_traefik_tls: "{{ matrix_bot_buscarron_container_labels_traefik_entrypoints != 'web' }}"
  71. matrix_bot_buscarron_container_labels_traefik_tls_certResolver: default # noqa var-naming
  72. # Controls which additional headers to attach to all HTTP responses.
  73. # To add your own headers, use `matrix_bot_buscarron_container_labels_traefik_additional_response_headers_custom`
  74. matrix_bot_buscarron_container_labels_traefik_additional_response_headers: "{{ matrix_bot_buscarron_container_labels_traefik_additional_response_headers_auto | combine(matrix_bot_buscarron_container_labels_traefik_additional_response_headers_custom) }}"
  75. matrix_bot_buscarron_container_labels_traefik_additional_response_headers_auto: {}
  76. matrix_bot_buscarron_container_labels_traefik_additional_response_headers_custom: {}
  77. # matrix_bot_buscarron_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  78. # See `../templates/labels.j2` for details.
  79. #
  80. # Example:
  81. # matrix_bot_buscarron_container_labels_additional_labels: |
  82. # my.label=1
  83. # another.label="here"
  84. matrix_bot_buscarron_container_labels_additional_labels: ''
  85. # A list of extra arguments to pass to the container
  86. matrix_bot_buscarron_container_extra_arguments: []
  87. # List of systemd services that matrix-bot-buscarron.service depends on
  88. matrix_bot_buscarron_systemd_required_services_list: "{{ matrix_bot_buscarron_systemd_required_services_list_default + matrix_bot_buscarron_systemd_required_services_list_auto + matrix_bot_buscarron_systemd_required_services_list_custom }}"
  89. matrix_bot_buscarron_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  90. matrix_bot_buscarron_systemd_required_services_list_auto: []
  91. matrix_bot_buscarron_systemd_required_services_list_custom: []
  92. # List of systemd services that matrix-bot-buscarron.service wants
  93. matrix_bot_buscarron_systemd_wanted_services_list: []
  94. # Database-related configuration fields.
  95. #
  96. # To use SQLite, stick to these defaults.
  97. #
  98. # To use Postgres:
  99. # - change the engine (`matrix_bot_buscarron_database_engine: 'postgres'`)
  100. # - adjust your database credentials via the `matrix_bot_buscarron_database_*` variables
  101. matrix_bot_buscarron_database_engine: 'sqlite'
  102. matrix_bot_buscarron_sqlite_database_path_local: "{{ matrix_bot_buscarron_data_path }}/bot.db"
  103. matrix_bot_buscarron_sqlite_database_path_in_container: "/data/bot.db"
  104. matrix_bot_buscarron_database_username: 'buscarron'
  105. matrix_bot_buscarron_database_password: 'some-password'
  106. matrix_bot_buscarron_database_hostname: ''
  107. matrix_bot_buscarron_database_port: 5432
  108. matrix_bot_buscarron_database_name: 'buscarron'
  109. matrix_bot_buscarron_database_sslmode: disable
  110. matrix_bot_buscarron_database_connection_string: 'postgres://{{ matrix_bot_buscarron_database_username }}:{{ matrix_bot_buscarron_database_password }}@{{ matrix_bot_buscarron_database_hostname }}:{{ matrix_bot_buscarron_database_port }}/{{ matrix_bot_buscarron_database_name }}?sslmode={{ matrix_bot_buscarron_database_sslmode }}'
  111. matrix_bot_buscarron_storage_database: "{{ {
  112. 'sqlite': matrix_bot_buscarron_sqlite_database_path_in_container,
  113. 'postgres': matrix_bot_buscarron_database_connection_string,
  114. }[matrix_bot_buscarron_database_engine] }}"
  115. matrix_bot_buscarron_database_dialect: "{{ {
  116. 'sqlite': 'sqlite3',
  117. 'postgres': 'postgres',
  118. }[matrix_bot_buscarron_database_engine] }}"
  119. # The bot's username. This user needs to be created manually beforehand.
  120. # Also see `matrix_bot_buscarron_password`.
  121. matrix_bot_buscarron_login: "bot.buscarron"
  122. # The password that the bot uses to authenticate.
  123. matrix_bot_buscarron_password: ''
  124. # the homeserver URL, uses internal synapse container address by default
  125. matrix_bot_buscarron_homeserver: ""
  126. # forms configuration
  127. matrix_bot_buscarron_forms: []
  128. # Sentry DSN
  129. matrix_bot_buscarron_sentry: ''
  130. # Log level
  131. matrix_bot_buscarron_loglevel: INFO
  132. # list of spammers with wildcards support, eg: *@spam.com spam@*, spam@spam.com
  133. matrix_bot_buscarron_spamlist: []
  134. # Banlist size
  135. matrix_bot_buscarron_ban_size: 10000
  136. # Permanent banlist
  137. matrix_bot_buscarron_ban_list: []
  138. # Postmark token (confirmation emails)
  139. matrix_bot_buscarron_pm_token: ''
  140. # Postmark sender signature
  141. matrix_bot_buscarron_pm_from: ''
  142. # Postmark confirmation email's reply-to
  143. matrix_bot_buscarron_pm_replyto: ''
  144. # email address (from) for SMTP validation. Must be valid email on valid SMTP server, otherwise it will be rejected by other servers
  145. matrix_bot_buscarron_smtp_from: ''
  146. # enforce SMTP validation
  147. matrix_bot_buscarron_smtp_validation: false
  148. # Additional environment variables to pass to the Buscarron container
  149. #
  150. # Example:
  151. # matrix_bot_buscarron_environment_variables_extension: |
  152. # BUSCARRON_LOGLEVEL=DEBUG
  153. matrix_bot_buscarron_environment_variables_extension: ''
  154. # matrix_bot_buscarron_restart_necessary controls whether the service
  155. # will be restarted (when true) or merely started (when false) by the
  156. # systemd service manager role (when conditional restart is enabled).
  157. #
  158. # This value is automatically computed during installation based on whether
  159. # any configuration files, the systemd service file, or the container image changed.
  160. # The default of `false` means "no restart needed" — appropriate when the role's
  161. # installation tasks haven't run (e.g., due to --tags skipping them).
  162. matrix_bot_buscarron_restart_necessary: false