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

204 строки
9.8 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_docker_repo: "https://github.com/etkecc/buscarron.git"
  27. matrix_bot_buscarron_docker_repo_version: "{{ matrix_bot_buscarron_version }}"
  28. matrix_bot_buscarron_docker_src_files_path: "{{ matrix_base_data_path }}/buscarron/docker-src"
  29. matrix_bot_buscarron_docker_image: "{{ matrix_bot_buscarron_docker_image_registry_prefix }}etkecc/buscarron:{{ matrix_bot_buscarron_version }}"
  30. matrix_bot_buscarron_docker_image_registry_prefix: "{{ 'localhost/' if matrix_bot_buscarron_container_image_self_build else matrix_bot_buscarron_docker_image_registry_prefix_upstream }}"
  31. matrix_bot_buscarron_docker_image_registry_prefix_upstream: "{{ matrix_bot_buscarron_docker_image_registry_prefix_upstream_default }}"
  32. matrix_bot_buscarron_docker_image_registry_prefix_upstream_default: "ghcr.io/"
  33. matrix_bot_buscarron_docker_image_force_pull: "{{ matrix_bot_buscarron_docker_image.endswith(':latest') }}"
  34. # The base container network. It will be auto-created by this role if it doesn't exist already.
  35. matrix_bot_buscarron_container_network: matrix-bot-buscarron
  36. # A list of additional container networks that the container would be connected to.
  37. # The role does not create these networks, so make sure they already exist.
  38. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  39. matrix_bot_buscarron_container_additional_networks: "{{ matrix_bot_buscarron_container_additional_networks_auto + matrix_bot_buscarron_container_additional_networks_custom }}"
  40. matrix_bot_buscarron_container_additional_networks_auto: []
  41. matrix_bot_buscarron_container_additional_networks_custom: []
  42. # /metrics login
  43. matrix_bot_buscarron_metrics_login: ''
  44. # /metrics password
  45. matrix_bot_buscarron_metrics_password: ''
  46. # /metrics allowed ips
  47. matrix_bot_buscarron_metrics_ips: []
  48. # healthchecks.io integration
  49. matrix_bot_buscarron_hc_url: '' # default is https://hc-ping.com (healthchecks.io)
  50. matrix_bot_buscarron_hc_uuid: '' # check UUID
  51. # redmine integration
  52. matrix_bot_buscarron_redmine_host: '' # e.g. https://redmine.example.com
  53. matrix_bot_buscarron_redmine_apikey: ''
  54. matrix_bot_buscarron_redmine_project: '' # project identifier (e.g., my-project)
  55. matrix_bot_buscarron_redmine_trackerid: '' # task tracker ID (e.g., 1)
  56. matrix_bot_buscarron_redmine_statusid: '' # task status ID (e.g., 1)
  57. # matrix_bot_buscarron_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  58. # See `../templates/labels.j2` for details.
  59. #
  60. # To inject your own other container labels, see `matrix_bot_buscarron_container_labels_additional_labels`.
  61. matrix_bot_buscarron_container_labels_traefik_enabled: true
  62. matrix_bot_buscarron_container_labels_traefik_docker_network: "{{ matrix_bot_buscarron_container_network }}"
  63. matrix_bot_buscarron_container_labels_traefik_hostname: "{{ matrix_bot_buscarron_hostname }}"
  64. # The path prefix must either be `/` or not end with a slash (e.g. `/buscarron`).
  65. matrix_bot_buscarron_container_labels_traefik_path_prefix: "{{ matrix_bot_buscarron_path_prefix }}"
  66. 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 %}"
  67. matrix_bot_buscarron_container_labels_traefik_metrics_path: "{{ matrix_bot_buscarron_metrics_path }}"
  68. 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 }}`)"
  69. matrix_bot_buscarron_container_labels_traefik_priority: 0
  70. matrix_bot_buscarron_container_labels_traefik_entrypoints: web-secure
  71. matrix_bot_buscarron_container_labels_traefik_tls: "{{ matrix_bot_buscarron_container_labels_traefik_entrypoints != 'web' }}"
  72. matrix_bot_buscarron_container_labels_traefik_tls_certResolver: default # noqa var-naming
  73. # Controls which additional headers to attach to all HTTP responses.
  74. # To add your own headers, use `matrix_bot_buscarron_container_labels_traefik_additional_response_headers_custom`
  75. 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) }}"
  76. matrix_bot_buscarron_container_labels_traefik_additional_response_headers_auto: {}
  77. matrix_bot_buscarron_container_labels_traefik_additional_response_headers_custom: {}
  78. # matrix_bot_buscarron_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  79. # See `../templates/labels.j2` for details.
  80. #
  81. # Example:
  82. # matrix_bot_buscarron_container_labels_additional_labels: |
  83. # my.label=1
  84. # another.label="here"
  85. matrix_bot_buscarron_container_labels_additional_labels: ''
  86. # A list of extra arguments to pass to the container
  87. matrix_bot_buscarron_container_extra_arguments: []
  88. # List of systemd services that matrix-bot-buscarron.service depends on
  89. 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 }}"
  90. matrix_bot_buscarron_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  91. matrix_bot_buscarron_systemd_required_services_list_auto: []
  92. matrix_bot_buscarron_systemd_required_services_list_custom: []
  93. # List of systemd services that matrix-bot-buscarron.service wants
  94. matrix_bot_buscarron_systemd_wanted_services_list: []
  95. # Database-related configuration fields.
  96. #
  97. # To use SQLite, stick to these defaults.
  98. #
  99. # To use Postgres:
  100. # - change the engine (`matrix_bot_buscarron_database_engine: 'postgres'`)
  101. # - adjust your database credentials via the `matrix_bot_buscarron_database_*` variables
  102. matrix_bot_buscarron_database_engine: 'sqlite'
  103. matrix_bot_buscarron_sqlite_database_path_local: "{{ matrix_bot_buscarron_data_path }}/bot.db"
  104. matrix_bot_buscarron_sqlite_database_path_in_container: "/data/bot.db"
  105. matrix_bot_buscarron_database_username: 'buscarron'
  106. matrix_bot_buscarron_database_password: 'some-password'
  107. matrix_bot_buscarron_database_hostname: ''
  108. matrix_bot_buscarron_database_port: 5432
  109. matrix_bot_buscarron_database_name: 'buscarron'
  110. matrix_bot_buscarron_database_sslmode: disable
  111. 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 }}'
  112. matrix_bot_buscarron_storage_database: "{{
  113. {
  114. 'sqlite': matrix_bot_buscarron_sqlite_database_path_in_container,
  115. 'postgres': matrix_bot_buscarron_database_connection_string,
  116. }[matrix_bot_buscarron_database_engine]
  117. }}"
  118. matrix_bot_buscarron_database_dialect: "{{
  119. {
  120. 'sqlite': 'sqlite3',
  121. 'postgres': 'postgres',
  122. }[matrix_bot_buscarron_database_engine]
  123. }}"
  124. # The bot's username. This user needs to be created manually beforehand.
  125. # Also see `matrix_bot_buscarron_password`.
  126. matrix_bot_buscarron_login: "bot.buscarron"
  127. # The password that the bot uses to authenticate.
  128. matrix_bot_buscarron_password: ''
  129. # the homeserver URL, uses internal synapse container address by default
  130. matrix_bot_buscarron_homeserver: ""
  131. # forms configuration
  132. matrix_bot_buscarron_forms: []
  133. # Sentry DSN
  134. matrix_bot_buscarron_sentry: ''
  135. # Log level
  136. matrix_bot_buscarron_loglevel: INFO
  137. # list of spammers with wildcards support, eg: *@spam.com spam@*, spam@spam.com
  138. matrix_bot_buscarron_spamlist: []
  139. # Banlist size
  140. matrix_bot_buscarron_ban_size: 10000
  141. # Permanent banlist
  142. matrix_bot_buscarron_ban_list: []
  143. # Postmark token (confirmation emails)
  144. matrix_bot_buscarron_pm_token: ''
  145. # Postmark sender signature
  146. matrix_bot_buscarron_pm_from: ''
  147. # Postmark confirmation email's reply-to
  148. matrix_bot_buscarron_pm_replyto: ''
  149. # email address (from) for SMTP validation. Must be valid email on valid SMTP server, otherwise it will be rejected by other servers
  150. matrix_bot_buscarron_smtp_from: ''
  151. # enforce SMTP validation
  152. matrix_bot_buscarron_smtp_validation: false
  153. # Additional environment variables to pass to the Buscarron container
  154. #
  155. # Example:
  156. # matrix_bot_buscarron_environment_variables_extension: |
  157. # BUSCARRON_LOGLEVEL=DEBUG
  158. matrix_bot_buscarron_environment_variables_extension: ''