2020-01-09 18:00:03 +02:00
|
|
|
# matrix-appservice-webhooks is a Matrix <-> webhook bridge
|
|
|
|
# See: https://github.com/turt2live/matrix-appservice-webhooks
|
|
|
|
|
|
|
|
matrix_appservice_webhooks_enabled: true
|
|
|
|
|
2021-10-01 15:37:37 +02:00
|
|
|
matrix_appservice_webhooks_container_image_self_build: false
|
|
|
|
matrix_appservice_webhooks_container_image_self_build_repo: "https://github.com/turt2live/matrix-appservice-webhooks"
|
|
|
|
matrix_appservice_webhooks_container_image_self_build_repo_version: "{{ 'master' if matrix_appservice_webhooks_version == 'latest' else matrix_appservice_webhooks_version }}"
|
|
|
|
matrix_appservice_webhooks_container_image_self_build_repo_dockerfile_path: "Dockerfile"
|
|
|
|
|
2021-02-20 19:08:28 +02:00
|
|
|
matrix_appservice_webhooks_version: latest
|
2021-10-01 15:37:37 +02:00
|
|
|
matrix_appservice_webhooks_docker_image: "{{ matrix_appservice_webhooks_docker_image_name_prefix }}turt2live/matrix-appservice-webhooks:{{ matrix_appservice_webhooks_version }}"
|
|
|
|
matrix_appservice_webhooks_docker_image_name_prefix: "{{ 'localhost/' if matrix_appservice_webhooks_container_image_self_build else matrix_container_global_registry_prefix }}"
|
2020-01-09 18:00:03 +02:00
|
|
|
matrix_appservice_webhooks_docker_image_force_pull: "{{ matrix_appservice_webhooks_docker_image.endswith(':latest') }}"
|
|
|
|
|
|
|
|
matrix_appservice_webhooks_base_path: "{{ matrix_base_data_path }}/appservice-webhooks"
|
|
|
|
matrix_appservice_webhooks_config_path: "{{ matrix_appservice_webhooks_base_path }}/config"
|
|
|
|
matrix_appservice_webhooks_data_path: "{{ matrix_appservice_webhooks_base_path }}/data"
|
2021-10-01 15:37:37 +02:00
|
|
|
matrix_appservice_webhooks_docker_src_files_path: "{{ matrix_appservice_webhooks_base_path }}/docker-src"
|
2020-01-09 18:00:03 +02:00
|
|
|
|
2020-01-13 18:29:19 +02:00
|
|
|
# If nginx-proxy is disabled, the bridge itself expects its endpoint to be on its own domain (e.g. "localhost:6789")
|
2020-01-09 18:00:03 +02:00
|
|
|
matrix_appservice_webhooks_public_endpoint: /appservice-webhooks
|
|
|
|
matrix_appservice_webhooks_inbound_uri_prefix: "{{ matrix_homeserver_url }}{{ matrix_appservice_webhooks_public_endpoint }}"
|
|
|
|
|
|
|
|
# Once you make a control room in Matrix, you can get its ID by typing any message and checking its source
|
|
|
|
matrix_appservice_webhooks_control_room_id: ''
|
|
|
|
matrix_appservice_webhooks_bot_name: 'webhookbot'
|
|
|
|
matrix_appservice_webhooks_user_prefix: '_webhook'
|
|
|
|
|
|
|
|
# Controls the webhooks_PORT and MATRIX_PORT of the installation
|
|
|
|
matrix_appservice_webhooks_matrix_port: 6789
|
|
|
|
|
2020-03-03 12:38:21 +02:00
|
|
|
# Controls whether the appservice-webhooks container exposes its HTTP port (tcp/6789 in the container).
|
2020-01-09 18:00:03 +02:00
|
|
|
#
|
|
|
|
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9999"), or empty string to not expose.
|
|
|
|
matrix_appservice_webhooks_container_http_host_bind_port: ''
|
|
|
|
|
2021-03-17 13:36:45 +02:00
|
|
|
matrix_appservice_webhooks_homeserver_media_url: "{{ matrix_server_fqn_matrix }}"
|
2021-11-15 22:43:05 +02:00
|
|
|
matrix_appservice_webhooks_homeserver_url: "http://matrix-synapse:{{ matrix_synapse_container_client_api_port }}"
|
2020-01-09 18:00:03 +02:00
|
|
|
matrix_appservice_webhooks_homeserver_domain: "{{ matrix_domain }}"
|
|
|
|
matrix_appservice_webhooks_appservice_url: 'http://matrix-appservice-webhooks'
|
|
|
|
|
|
|
|
# A list of extra arguments to pass to the container
|
|
|
|
matrix_appservice_webhooks_container_extra_arguments: []
|
|
|
|
|
|
|
|
# List of systemd services that matrix-appservice-webhooks.service depends on.
|
|
|
|
matrix_appservice_webhooks_systemd_required_services_list: ['docker.service', 'matrix-synapse.service']
|
|
|
|
|
|
|
|
# List of systemd services that matrix-appservice-webhooks.service wants
|
|
|
|
matrix_appservice_webhooks_systemd_wanted_services_list: []
|
|
|
|
|
|
|
|
matrix_appservice_webhooks_appservice_token: ''
|
|
|
|
matrix_appservice_webhooks_homeserver_token: ''
|
|
|
|
matrix_appservice_webhooks_id_token: ''
|
2020-01-10 13:38:37 +02:00
|
|
|
matrix_appservice_webhooks_api_secret: ''
|
2020-01-09 18:00:03 +02:00
|
|
|
|
2020-01-13 18:29:46 +02:00
|
|
|
# Logging information (info and verbose is available) default is: info
|
2020-01-10 13:40:55 +02:00
|
|
|
matrix_appservice_webhooks_log_level: 'info'
|
|
|
|
|
2020-06-03 08:33:28 +02:00
|
|
|
matrix_appservice_webhooks_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
|
2020-01-09 18:00:03 +02:00
|
|
|
|
|
|
|
matrix_appservice_webhooks_configuration_extension_yaml: |
|
|
|
|
#
|
|
|
|
|
|
|
|
matrix_appservice_webhooks_configuration_extension: "{{ matrix_appservice_webhooks_configuration_extension_yaml|from_yaml if matrix_appservice_webhooks_configuration_extension_yaml|from_yaml else {} }}"
|
|
|
|
|
|
|
|
matrix_appservice_webhooks_configuration: "{{ matrix_appservice_webhooks_configuration_yaml|from_yaml|combine(matrix_appservice_webhooks_configuration_extension, recursive=True) }}"
|
|
|
|
|
|
|
|
matrix_appservice_webhooks_registration_yaml: |
|
|
|
|
id: "{{ matrix_appservice_webhooks_id_token }}"
|
|
|
|
hs_token: "{{ matrix_appservice_webhooks_homeserver_token }}"
|
|
|
|
as_token: "{{ matrix_appservice_webhooks_appservice_token }}"
|
|
|
|
namespaces:
|
|
|
|
users:
|
|
|
|
- exclusive: true
|
2020-01-15 20:15:42 +02:00
|
|
|
regex: '^@{{ matrix_appservice_webhooks_user_prefix | regex_escape }}.*:{{ matrix_domain | regex_escape }}$'
|
2020-01-09 18:00:03 +02:00
|
|
|
aliases: []
|
|
|
|
rooms: []
|
|
|
|
url: "{{ matrix_appservice_webhooks_appservice_url }}:{{ matrix_appservice_webhooks_matrix_port }}"
|
|
|
|
sender_localpart: _webhook
|
|
|
|
rate_limited: false
|
|
|
|
protocols: null
|
|
|
|
|
|
|
|
matrix_appservice_webhooks_registration: "{{ matrix_appservice_webhooks_registration_yaml|from_yaml }}"
|