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.
 
 

199 lines
9.4 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # Buscarron is a Web forms (HTTP POST) to Matrix service.
  6. # Project source code URL: https://github.com/etkecc/buscarron
  7. matrix_bot_buscarron_enabled: true
  8. # renovate: datasource=docker depName=ghcr.io/etkecc/buscarron
  9. matrix_bot_buscarron_version: v1.4.3
  10. # The hostname at which Buscarron is served.
  11. matrix_bot_buscarron_hostname: ''
  12. # The path at which Buscarron is exposed.
  13. # This value must either be `/` or not end with a slash (e.g. `/buscarron`).
  14. matrix_bot_buscarron_path_prefix: /
  15. # The path at which Buscarron will expose metrics
  16. # This value must either be `/` or not end with a slash (e.g. `/metrics`).
  17. matrix_bot_buscarron_metrics_path: /metrics
  18. matrix_bot_buscarron_base_path: "{{ matrix_base_data_path }}/buscarron"
  19. matrix_bot_buscarron_config_path: "{{ matrix_bot_buscarron_base_path }}/config"
  20. matrix_bot_buscarron_data_path: "{{ matrix_bot_buscarron_base_path }}/data"
  21. matrix_bot_buscarron_data_store_path: "{{ matrix_bot_buscarron_data_path }}/store"
  22. matrix_bot_buscarron_container_image_self_build: false
  23. matrix_bot_buscarron_docker_repo: "https://github.com/etkecc/buscarron.git"
  24. matrix_bot_buscarron_docker_repo_version: "{{ matrix_bot_buscarron_version }}"
  25. matrix_bot_buscarron_docker_src_files_path: "{{ matrix_base_data_path }}/buscarron/docker-src"
  26. matrix_bot_buscarron_docker_image: "{{ matrix_bot_buscarron_docker_image_name_prefix }}etkecc/buscarron:{{ matrix_bot_buscarron_version }}"
  27. matrix_bot_buscarron_docker_image_name_prefix: "{{ 'localhost/' if matrix_bot_buscarron_container_image_self_build else 'ghcr.io/' }}"
  28. matrix_bot_buscarron_docker_image_force_pull: "{{ matrix_bot_buscarron_docker_image.endswith(':latest') }}"
  29. # The base container network. It will be auto-created by this role if it doesn't exist already.
  30. matrix_bot_buscarron_container_network: matrix-bot-buscarron
  31. # A list of additional container networks that the container would be connected to.
  32. # The role does not create these networks, so make sure they already exist.
  33. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  34. matrix_bot_buscarron_container_additional_networks: "{{ matrix_bot_buscarron_container_additional_networks_auto + matrix_bot_buscarron_container_additional_networks_custom }}"
  35. matrix_bot_buscarron_container_additional_networks_auto: []
  36. matrix_bot_buscarron_container_additional_networks_custom: []
  37. # /metrics login
  38. matrix_bot_buscarron_metrics_login: ''
  39. # /metrics password
  40. matrix_bot_buscarron_metrics_password: ''
  41. # /metrics allowed ips
  42. matrix_bot_buscarron_metrics_ips: []
  43. # healthchecks.io integration
  44. matrix_bot_buscarron_hc_url: '' # default is https://hc-ping.com (healthchecks.io)
  45. matrix_bot_buscarron_hc_uuid: '' # check UUID
  46. # redmine integration
  47. matrix_bot_buscarron_redmine_host: '' # e.g. https://redmine.example.com
  48. matrix_bot_buscarron_redmine_apikey: ''
  49. matrix_bot_buscarron_redmine_project: '' # project identifier (e.g., my-project)
  50. matrix_bot_buscarron_redmine_trackerid: '' # task tracker ID (e.g., 1)
  51. matrix_bot_buscarron_redmine_statusid: '' # task status ID (e.g., 1)
  52. # matrix_bot_buscarron_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  53. # See `../templates/labels.j2` for details.
  54. #
  55. # To inject your own other container labels, see `matrix_bot_buscarron_container_labels_additional_labels`.
  56. matrix_bot_buscarron_container_labels_traefik_enabled: true
  57. matrix_bot_buscarron_container_labels_traefik_docker_network: "{{ matrix_bot_buscarron_container_network }}"
  58. matrix_bot_buscarron_container_labels_traefik_hostname: "{{ matrix_bot_buscarron_hostname }}"
  59. # The path prefix must either be `/` or not end with a slash (e.g. `/buscarron`).
  60. matrix_bot_buscarron_container_labels_traefik_path_prefix: "{{ matrix_bot_buscarron_path_prefix }}"
  61. 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 %}"
  62. matrix_bot_buscarron_container_labels_traefik_metrics_path: "{{ matrix_bot_buscarron_metrics_path }}"
  63. 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 }}`)"
  64. matrix_bot_buscarron_container_labels_traefik_priority: 0
  65. matrix_bot_buscarron_container_labels_traefik_entrypoints: web-secure
  66. matrix_bot_buscarron_container_labels_traefik_tls: "{{ matrix_bot_buscarron_container_labels_traefik_entrypoints != 'web' }}"
  67. matrix_bot_buscarron_container_labels_traefik_tls_certResolver: default # noqa var-naming
  68. # Controls which additional headers to attach to all HTTP responses.
  69. # To add your own headers, use `matrix_bot_buscarron_container_labels_traefik_additional_response_headers_custom`
  70. 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) }}"
  71. matrix_bot_buscarron_container_labels_traefik_additional_response_headers_auto: {}
  72. matrix_bot_buscarron_container_labels_traefik_additional_response_headers_custom: {}
  73. # matrix_bot_buscarron_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  74. # See `../templates/labels.j2` for details.
  75. #
  76. # Example:
  77. # matrix_bot_buscarron_container_labels_additional_labels: |
  78. # my.label=1
  79. # another.label="here"
  80. matrix_bot_buscarron_container_labels_additional_labels: ''
  81. # A list of extra arguments to pass to the container
  82. matrix_bot_buscarron_container_extra_arguments: []
  83. # List of systemd services that matrix-bot-buscarron.service depends on
  84. 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 }}"
  85. matrix_bot_buscarron_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  86. matrix_bot_buscarron_systemd_required_services_list_auto: []
  87. matrix_bot_buscarron_systemd_required_services_list_custom: []
  88. # List of systemd services that matrix-bot-buscarron.service wants
  89. matrix_bot_buscarron_systemd_wanted_services_list: []
  90. # Database-related configuration fields.
  91. #
  92. # To use SQLite, stick to these defaults.
  93. #
  94. # To use Postgres:
  95. # - change the engine (`matrix_bot_buscarron_database_engine: 'postgres'`)
  96. # - adjust your database credentials via the `matrix_bot_buscarron_database_*` variables
  97. matrix_bot_buscarron_database_engine: 'sqlite'
  98. matrix_bot_buscarron_sqlite_database_path_local: "{{ matrix_bot_buscarron_data_path }}/bot.db"
  99. matrix_bot_buscarron_sqlite_database_path_in_container: "/data/bot.db"
  100. matrix_bot_buscarron_database_username: 'buscarron'
  101. matrix_bot_buscarron_database_password: 'some-password'
  102. matrix_bot_buscarron_database_hostname: ''
  103. matrix_bot_buscarron_database_port: 5432
  104. matrix_bot_buscarron_database_name: 'buscarron'
  105. matrix_bot_buscarron_database_sslmode: disable
  106. 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 }}'
  107. matrix_bot_buscarron_storage_database: "{{
  108. {
  109. 'sqlite': matrix_bot_buscarron_sqlite_database_path_in_container,
  110. 'postgres': matrix_bot_buscarron_database_connection_string,
  111. }[matrix_bot_buscarron_database_engine]
  112. }}"
  113. matrix_bot_buscarron_database_dialect: "{{
  114. {
  115. 'sqlite': 'sqlite3',
  116. 'postgres': 'postgres',
  117. }[matrix_bot_buscarron_database_engine]
  118. }}"
  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: ''