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.
 
 

194 regels
8.5 KiB

  1. ---
  2. # buscarron is a Web forms (HTTP POST) to Matrix service.
  3. # Project source code URL: https://gitlab.com/etke.cc/buscarron
  4. matrix_bot_buscarron_enabled: true
  5. # renovate: datasource=docker depName=registry.gitlab.com/etke.cc/buscarron
  6. matrix_bot_buscarron_version: v1.3.1
  7. # The hostname at which Buscarron is served.
  8. matrix_bot_buscarron_hostname: ''
  9. # The path at which Buscarron is exposed.
  10. # This value must either be `/` or not end with a slash (e.g. `/buscarron`).
  11. matrix_bot_buscarron_path_prefix: /
  12. # The path at which Buscarron will expose metrics
  13. # This value must either be `/` or not end with a slash (e.g. `/metrics`).
  14. matrix_bot_buscarron_metrics_path: /metrics
  15. matrix_bot_buscarron_base_path: "{{ matrix_base_data_path }}/buscarron"
  16. matrix_bot_buscarron_config_path: "{{ matrix_bot_buscarron_base_path }}/config"
  17. matrix_bot_buscarron_data_path: "{{ matrix_bot_buscarron_base_path }}/data"
  18. matrix_bot_buscarron_data_store_path: "{{ matrix_bot_buscarron_data_path }}/store"
  19. matrix_bot_buscarron_container_image_self_build: false
  20. matrix_bot_buscarron_docker_repo: "https://gitlab.com/etke.cc/buscarron.git"
  21. matrix_bot_buscarron_docker_repo_version: "{{ matrix_bot_buscarron_version }}"
  22. matrix_bot_buscarron_docker_src_files_path: "{{ matrix_base_data_path }}/buscarron/docker-src"
  23. matrix_bot_buscarron_docker_image: "{{ matrix_bot_buscarron_docker_image_name_prefix }}etke.cc/buscarron:{{ matrix_bot_buscarron_version }}"
  24. matrix_bot_buscarron_docker_image_name_prefix: "{{ 'localhost/' if matrix_bot_buscarron_container_image_self_build else 'registry.gitlab.com/' }}"
  25. matrix_bot_buscarron_docker_image_force_pull: "{{ matrix_bot_buscarron_docker_image.endswith(':latest') }}"
  26. # The base container network. It will be auto-created by this role if it doesn't exist already.
  27. matrix_bot_buscarron_container_network: matrix-bot-buscarron
  28. # A list of additional container networks that the container would be connected to.
  29. # The role does not create these networks, so make sure they already exist.
  30. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  31. matrix_bot_buscarron_container_additional_networks: []
  32. # /metrics login
  33. matrix_bot_buscarron_metrics_login: ''
  34. # /metrics password
  35. matrix_bot_buscarron_metrics_password: ''
  36. # /metrics allowed ips
  37. matrix_bot_buscarron_metrics_ips: []
  38. # matrix_bot_buscarron_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  39. # See `../templates/labels.j2` for details.
  40. #
  41. # To inject your own other container labels, see `matrix_bot_buscarron_container_labels_additional_labels`.
  42. matrix_bot_buscarron_container_labels_traefik_enabled: true
  43. matrix_bot_buscarron_container_labels_traefik_docker_network: "{{ matrix_bot_buscarron_container_network }}"
  44. matrix_bot_buscarron_container_labels_traefik_hostname: "{{ matrix_bot_buscarron_hostname }}"
  45. # The path prefix must either be `/` or not end with a slash (e.g. `/buscarron`).
  46. matrix_bot_buscarron_container_labels_traefik_path_prefix: "{{ matrix_bot_buscarron_path_prefix }}"
  47. 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 %}"
  48. matrix_bot_buscarron_container_labels_traefik_metrics_path: "{{ matrix_bot_buscarron_metrics_path }}"
  49. 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 }}`)"
  50. matrix_bot_buscarron_container_labels_traefik_priority: 0
  51. matrix_bot_buscarron_container_labels_traefik_entrypoints: web-secure
  52. matrix_bot_buscarron_container_labels_traefik_tls: "{{ matrix_bot_buscarron_container_labels_traefik_entrypoints != 'web' }}"
  53. matrix_bot_buscarron_container_labels_traefik_tls_certResolver: default # noqa var-naming
  54. # Controls which additional headers to attach to all HTTP responses.
  55. # To add your own headers, use `matrix_bot_buscarron_container_labels_traefik_additional_response_headers_custom`
  56. 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) }}"
  57. matrix_bot_buscarron_container_labels_traefik_additional_response_headers_auto: {}
  58. matrix_bot_buscarron_container_labels_traefik_additional_response_headers_custom: {}
  59. # matrix_bot_buscarron_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  60. # See `../templates/labels.j2` for details.
  61. #
  62. # Example:
  63. # matrix_bot_buscarron_container_labels_additional_labels: |
  64. # my.label=1
  65. # another.label="here"
  66. matrix_bot_buscarron_container_labels_additional_labels: ''
  67. # A list of extra arguments to pass to the container
  68. matrix_bot_buscarron_container_extra_arguments: []
  69. # List of systemd services that matrix-bot-buscarron.service depends on
  70. matrix_bot_buscarron_systemd_required_services_list: ['docker.service']
  71. # List of systemd services that matrix-bot-buscarron.service wants
  72. matrix_bot_buscarron_systemd_wanted_services_list: []
  73. # Database-related configuration fields.
  74. #
  75. # To use SQLite, stick to these defaults.
  76. #
  77. # To use Postgres:
  78. # - change the engine (`matrix_bot_buscarron_database_engine: 'postgres'`)
  79. # - adjust your database credentials via the `matrix_bot_buscarron_database_*` variables
  80. matrix_bot_buscarron_database_engine: 'sqlite'
  81. matrix_bot_buscarron_sqlite_database_path_local: "{{ matrix_bot_buscarron_data_path }}/bot.db"
  82. matrix_bot_buscarron_sqlite_database_path_in_container: "/data/bot.db"
  83. matrix_bot_buscarron_database_username: 'buscarron'
  84. matrix_bot_buscarron_database_password: 'some-password'
  85. matrix_bot_buscarron_database_hostname: ''
  86. matrix_bot_buscarron_database_port: 5432
  87. matrix_bot_buscarron_database_name: 'buscarron'
  88. matrix_bot_buscarron_database_sslmode: disable
  89. 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 }}'
  90. matrix_bot_buscarron_storage_database: "{{
  91. {
  92. 'sqlite': matrix_bot_buscarron_sqlite_database_path_in_container,
  93. 'postgres': matrix_bot_buscarron_database_connection_string,
  94. }[matrix_bot_buscarron_database_engine]
  95. }}"
  96. matrix_bot_buscarron_database_dialect: "{{
  97. {
  98. 'sqlite': 'sqlite3',
  99. 'postgres': 'postgres',
  100. }[matrix_bot_buscarron_database_engine]
  101. }}"
  102. # The bot's username. This user needs to be created manually beforehand.
  103. # Also see `matrix_bot_buscarron_password`.
  104. matrix_bot_buscarron_login: "bot.buscarron"
  105. # The password that the bot uses to authenticate.
  106. matrix_bot_buscarron_password: ''
  107. # the homeserver URL, uses internal synapse container address by default
  108. matrix_bot_buscarron_homeserver: "{{ matrix_homeserver_container_url }}"
  109. # forms configuration
  110. matrix_bot_buscarron_forms: []
  111. # Disable encryption
  112. matrix_bot_buscarron_noencryption: false
  113. # Sentry DSN
  114. matrix_bot_buscarron_sentry: ''
  115. # Log level
  116. matrix_bot_buscarron_loglevel: INFO
  117. # list of spammers with wildcards support, eg: *@spam.com spam@*, spam@spam.com
  118. matrix_bot_buscarron_spamlist: []
  119. # spam hosts/domains.
  120. # deprecated, use matrix_bot_buscarron_spamlist
  121. matrix_bot_buscarron_spam_hosts: []
  122. # spam email addresses
  123. # deprecated, use matrix_bot_buscarron_spamlist
  124. matrix_bot_buscarron_spam_emails: []
  125. # spam email localparts
  126. # deprecated, use matrix_bot_buscarron_spamlist
  127. matrix_bot_buscarron_spam_localparts: []
  128. # Banlist size
  129. matrix_bot_buscarron_ban_size: 10000
  130. # Permanent banlist
  131. matrix_bot_buscarron_ban_list: []
  132. # Postmark token (confirmation emails)
  133. matrix_bot_buscarron_pm_token: ''
  134. # Postmark sender signature
  135. matrix_bot_buscarron_pm_from: ''
  136. # Postmark confirmation email's reply-to
  137. matrix_bot_buscarron_pm_replyto: ''
  138. # email address (from) for SMTP validation. Must be valid email on valid SMTP server, otherwise it will be rejected by other servers
  139. matrix_bot_buscarron_smtp_from: ''
  140. # enforce SMTP validation
  141. matrix_bot_buscarron_smtp_validation: false
  142. # Additional environment variables to pass to the buscarron container
  143. #
  144. # Example:
  145. # matrix_bot_buscarron_environment_variables_extension: |
  146. # BUSCARRON_LOGLEVEL=DEBUG
  147. matrix_bot_buscarron_environment_variables_extension: ''