2022-04-23 13:19:24 +00:00
|
|
|
---
|
2023-02-25 12:58:41 +00:00
|
|
|
|
|
|
|
# buscarron is a Web forms (HTTP POST) to Matrix service.
|
2022-07-16 20:59:21 +00:00
|
|
|
# Project source code URL: https://gitlab.com/etke.cc/buscarron
|
2022-04-23 13:19:24 +00:00
|
|
|
|
|
|
|
matrix_bot_buscarron_enabled: true
|
|
|
|
|
2023-10-06 12:14:03 +00:00
|
|
|
# renovate: datasource=docker depName=registry.gitlab.com/etke.cc/buscarron
|
2023-02-25 13:10:40 +00:00
|
|
|
matrix_bot_buscarron_version: v1.3.1
|
|
|
|
|
2023-02-25 13:50:48 +00:00
|
|
|
# The hostname at which Buscarron is served.
|
|
|
|
matrix_bot_buscarron_hostname: ''
|
|
|
|
|
|
|
|
# The path at which Buscarron is exposed.
|
|
|
|
# This value must either be `/` or not end with a slash (e.g. `/buscarron`).
|
|
|
|
matrix_bot_buscarron_path_prefix: /
|
|
|
|
|
2023-04-21 09:45:32 +00:00
|
|
|
# The path at which Buscarron will expose metrics
|
|
|
|
# This value must either be `/` or not end with a slash (e.g. `/metrics`).
|
|
|
|
matrix_bot_buscarron_metrics_path: /metrics
|
|
|
|
|
2023-02-25 13:10:40 +00:00
|
|
|
matrix_bot_buscarron_base_path: "{{ matrix_base_data_path }}/buscarron"
|
|
|
|
matrix_bot_buscarron_config_path: "{{ matrix_bot_buscarron_base_path }}/config"
|
|
|
|
matrix_bot_buscarron_data_path: "{{ matrix_bot_buscarron_base_path }}/data"
|
|
|
|
matrix_bot_buscarron_data_store_path: "{{ matrix_bot_buscarron_data_path }}/store"
|
|
|
|
|
2022-04-23 13:19:24 +00:00
|
|
|
matrix_bot_buscarron_container_image_self_build: false
|
|
|
|
matrix_bot_buscarron_docker_repo: "https://gitlab.com/etke.cc/buscarron.git"
|
2022-07-18 11:43:52 +00:00
|
|
|
matrix_bot_buscarron_docker_repo_version: "{{ matrix_bot_buscarron_version }}"
|
2022-04-23 13:19:24 +00:00
|
|
|
matrix_bot_buscarron_docker_src_files_path: "{{ matrix_base_data_path }}/buscarron/docker-src"
|
|
|
|
|
2023-01-08 20:05:43 +00:00
|
|
|
matrix_bot_buscarron_docker_image: "{{ matrix_bot_buscarron_docker_image_name_prefix }}etke.cc/buscarron:{{ matrix_bot_buscarron_version }}"
|
|
|
|
matrix_bot_buscarron_docker_image_name_prefix: "{{ 'localhost/' if matrix_bot_buscarron_container_image_self_build else 'registry.gitlab.com/' }}"
|
2022-04-23 13:19:24 +00:00
|
|
|
matrix_bot_buscarron_docker_image_force_pull: "{{ matrix_bot_buscarron_docker_image.endswith(':latest') }}"
|
|
|
|
|
2023-02-25 13:02:30 +00:00
|
|
|
# The base container network. It will be auto-created by this role if it doesn't exist already.
|
2023-02-25 13:10:40 +00:00
|
|
|
matrix_bot_buscarron_container_network: matrix-bot-buscarron
|
2023-02-25 13:02:30 +00:00
|
|
|
|
|
|
|
# A list of additional container networks that the container would be connected to.
|
|
|
|
# The role does not create these networks, so make sure they already exist.
|
|
|
|
# Use this to expose this container to another reverse proxy, which runs in a different container network.
|
2023-02-25 13:10:40 +00:00
|
|
|
matrix_bot_buscarron_container_additional_networks: []
|
2023-02-25 13:02:30 +00:00
|
|
|
|
2023-11-29 11:23:57 +00:00
|
|
|
# /metrics login
|
|
|
|
matrix_bot_buscarron_metrics_login: ''
|
|
|
|
# /metrics password
|
|
|
|
matrix_bot_buscarron_metrics_password: ''
|
|
|
|
# /metrics allowed ips
|
|
|
|
matrix_bot_buscarron_metrics_ips: []
|
|
|
|
|
2023-04-21 09:45:32 +00:00
|
|
|
|
2023-02-25 13:50:48 +00:00
|
|
|
# matrix_bot_buscarron_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
|
|
|
|
# See `../templates/labels.j2` for details.
|
|
|
|
#
|
|
|
|
# To inject your own other container labels, see `matrix_bot_buscarron_container_labels_additional_labels`.
|
|
|
|
matrix_bot_buscarron_container_labels_traefik_enabled: true
|
|
|
|
matrix_bot_buscarron_container_labels_traefik_docker_network: "{{ matrix_bot_buscarron_container_network }}"
|
|
|
|
matrix_bot_buscarron_container_labels_traefik_hostname: "{{ matrix_bot_buscarron_hostname }}"
|
|
|
|
# The path prefix must either be `/` or not end with a slash (e.g. `/buscarron`).
|
|
|
|
matrix_bot_buscarron_container_labels_traefik_path_prefix: "{{ matrix_bot_buscarron_path_prefix }}"
|
|
|
|
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 %}"
|
2023-04-21 09:45:32 +00:00
|
|
|
matrix_bot_buscarron_container_labels_traefik_metrics_path: "{{ matrix_bot_buscarron_metrics_path }}"
|
|
|
|
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 }}`)"
|
2023-02-25 13:50:48 +00:00
|
|
|
matrix_bot_buscarron_container_labels_traefik_priority: 0
|
|
|
|
matrix_bot_buscarron_container_labels_traefik_entrypoints: web-secure
|
|
|
|
matrix_bot_buscarron_container_labels_traefik_tls: "{{ matrix_bot_buscarron_container_labels_traefik_entrypoints != 'web' }}"
|
|
|
|
matrix_bot_buscarron_container_labels_traefik_tls_certResolver: default # noqa var-naming
|
|
|
|
|
|
|
|
# Controls which additional headers to attach to all HTTP responses.
|
|
|
|
# To add your own headers, use `matrix_bot_buscarron_container_labels_traefik_additional_response_headers_custom`
|
|
|
|
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) }}"
|
|
|
|
matrix_bot_buscarron_container_labels_traefik_additional_response_headers_auto: {}
|
|
|
|
matrix_bot_buscarron_container_labels_traefik_additional_response_headers_custom: {}
|
|
|
|
|
|
|
|
# matrix_bot_buscarron_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
|
|
|
|
# See `../templates/labels.j2` for details.
|
|
|
|
#
|
|
|
|
# Example:
|
|
|
|
# matrix_bot_buscarron_container_labels_additional_labels: |
|
|
|
|
# my.label=1
|
|
|
|
# another.label="here"
|
|
|
|
matrix_bot_buscarron_container_labels_additional_labels: ''
|
|
|
|
|
2022-04-23 13:19:24 +00:00
|
|
|
# A list of extra arguments to pass to the container
|
|
|
|
matrix_bot_buscarron_container_extra_arguments: []
|
|
|
|
|
|
|
|
# List of systemd services that matrix-bot-buscarron.service depends on
|
|
|
|
matrix_bot_buscarron_systemd_required_services_list: ['docker.service']
|
|
|
|
|
|
|
|
# List of systemd services that matrix-bot-buscarron.service wants
|
|
|
|
matrix_bot_buscarron_systemd_wanted_services_list: []
|
|
|
|
|
|
|
|
|
|
|
|
# Database-related configuration fields.
|
|
|
|
#
|
|
|
|
# To use SQLite, stick to these defaults.
|
|
|
|
#
|
|
|
|
# To use Postgres:
|
|
|
|
# - change the engine (`matrix_bot_buscarron_database_engine: 'postgres'`)
|
|
|
|
# - adjust your database credentials via the `matrix_bot_buscarron_database_*` variables
|
|
|
|
matrix_bot_buscarron_database_engine: 'sqlite'
|
|
|
|
|
|
|
|
matrix_bot_buscarron_sqlite_database_path_local: "{{ matrix_bot_buscarron_data_path }}/bot.db"
|
|
|
|
matrix_bot_buscarron_sqlite_database_path_in_container: "/data/bot.db"
|
|
|
|
|
|
|
|
matrix_bot_buscarron_database_username: 'buscarron'
|
|
|
|
matrix_bot_buscarron_database_password: 'some-password'
|
2022-11-27 07:16:18 +00:00
|
|
|
matrix_bot_buscarron_database_hostname: ''
|
2022-04-23 13:19:24 +00:00
|
|
|
matrix_bot_buscarron_database_port: 5432
|
|
|
|
matrix_bot_buscarron_database_name: 'buscarron'
|
2023-08-22 16:38:11 +00:00
|
|
|
matrix_bot_buscarron_database_sslmode: disable
|
2022-04-23 13:19:24 +00:00
|
|
|
|
2023-08-22 16:38:11 +00:00
|
|
|
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 }}'
|
2022-04-23 13:19:24 +00:00
|
|
|
|
|
|
|
matrix_bot_buscarron_storage_database: "{{
|
|
|
|
{
|
|
|
|
'sqlite': matrix_bot_buscarron_sqlite_database_path_in_container,
|
|
|
|
'postgres': matrix_bot_buscarron_database_connection_string,
|
|
|
|
}[matrix_bot_buscarron_database_engine]
|
|
|
|
}}"
|
|
|
|
|
|
|
|
matrix_bot_buscarron_database_dialect: "{{
|
|
|
|
{
|
|
|
|
'sqlite': 'sqlite3',
|
|
|
|
'postgres': 'postgres',
|
|
|
|
}[matrix_bot_buscarron_database_engine]
|
|
|
|
}}"
|
|
|
|
|
|
|
|
|
|
|
|
# The bot's username. This user needs to be created manually beforehand.
|
|
|
|
# Also see `matrix_bot_buscarron_password`.
|
2022-04-25 06:40:49 +00:00
|
|
|
matrix_bot_buscarron_login: "bot.buscarron"
|
2022-04-23 13:19:24 +00:00
|
|
|
|
|
|
|
# The password that the bot uses to authenticate.
|
|
|
|
matrix_bot_buscarron_password: ''
|
|
|
|
|
|
|
|
# the homeserver URL, uses internal synapse container address by default
|
|
|
|
matrix_bot_buscarron_homeserver: "{{ matrix_homeserver_container_url }}"
|
|
|
|
|
|
|
|
# forms configuration
|
|
|
|
matrix_bot_buscarron_forms: []
|
|
|
|
|
2022-06-20 21:02:17 +00:00
|
|
|
# Disable encryption
|
2022-10-25 15:39:39 +00:00
|
|
|
matrix_bot_buscarron_noencryption: false
|
2022-06-20 21:02:17 +00:00
|
|
|
|
2022-04-23 13:19:24 +00:00
|
|
|
# Sentry DSN
|
2022-10-25 15:39:39 +00:00
|
|
|
matrix_bot_buscarron_sentry: ''
|
2022-04-23 13:19:24 +00:00
|
|
|
|
|
|
|
# Log level
|
|
|
|
matrix_bot_buscarron_loglevel: INFO
|
|
|
|
|
2022-10-25 15:39:39 +00:00
|
|
|
# list of spammers with wildcards support, eg: *@spam.com spam@*, spam@spam.com
|
|
|
|
matrix_bot_buscarron_spamlist: []
|
|
|
|
|
|
|
|
# spam hosts/domains.
|
|
|
|
# deprecated, use matrix_bot_buscarron_spamlist
|
2022-04-23 13:19:24 +00:00
|
|
|
matrix_bot_buscarron_spam_hosts: []
|
|
|
|
|
|
|
|
# spam email addresses
|
2022-10-25 15:39:39 +00:00
|
|
|
# deprecated, use matrix_bot_buscarron_spamlist
|
2022-04-23 13:19:24 +00:00
|
|
|
matrix_bot_buscarron_spam_emails: []
|
|
|
|
|
2022-06-20 21:02:17 +00:00
|
|
|
# spam email localparts
|
2022-10-25 15:39:39 +00:00
|
|
|
# deprecated, use matrix_bot_buscarron_spamlist
|
2022-06-20 21:02:17 +00:00
|
|
|
matrix_bot_buscarron_spam_localparts: []
|
|
|
|
|
2022-05-10 15:38:57 +00:00
|
|
|
# Banlist size
|
2022-05-10 15:44:20 +00:00
|
|
|
matrix_bot_buscarron_ban_size: 10000
|
2022-05-10 15:38:57 +00:00
|
|
|
|
2022-10-25 15:39:39 +00:00
|
|
|
# Permanent banlist
|
|
|
|
matrix_bot_buscarron_ban_list: []
|
|
|
|
|
2022-05-10 15:38:57 +00:00
|
|
|
# Postmark token (confirmation emails)
|
2022-10-25 15:39:39 +00:00
|
|
|
matrix_bot_buscarron_pm_token: ''
|
2022-05-10 15:38:57 +00:00
|
|
|
|
|
|
|
# Postmark sender signature
|
2022-10-25 15:39:39 +00:00
|
|
|
matrix_bot_buscarron_pm_from: ''
|
2022-05-10 15:38:57 +00:00
|
|
|
|
|
|
|
# Postmark confirmation email's reply-to
|
2022-10-25 15:39:39 +00:00
|
|
|
matrix_bot_buscarron_pm_replyto: ''
|
|
|
|
|
|
|
|
# email address (from) for SMTP validation. Must be valid email on valid SMTP server, otherwise it will be rejected by other servers
|
|
|
|
matrix_bot_buscarron_smtp_from: ''
|
|
|
|
|
|
|
|
# enforce SMTP validation
|
|
|
|
matrix_bot_buscarron_smtp_validation: false
|
2022-05-10 15:38:57 +00:00
|
|
|
|
2022-04-23 13:19:24 +00:00
|
|
|
# Additional environment variables to pass to the buscarron container
|
|
|
|
#
|
|
|
|
# Example:
|
|
|
|
# matrix_bot_buscarron_environment_variables_extension: |
|
|
|
|
# BUSCARRON_LOGLEVEL=DEBUG
|
|
|
|
matrix_bot_buscarron_environment_variables_extension: ''
|