Browse Source

Add support for Hookshot static connections (new in v7.3.0)

This adds the matrix_hookshot_connections variable for configuring
static webhook connections via the config file.

See: https://github.com/matrix-org/matrix-hookshot/pull/1102
pull/4872/head
Slavi Pantaleev 1 month ago
parent
commit
911031e2cf
2 changed files with 13 additions and 0 deletions
  1. +12
    -0
      roles/custom/matrix-bridge-hookshot/defaults/main.yml
  2. +1
    -0
      roles/custom/matrix-bridge-hookshot/templates/config.yaml.j2

+ 12
- 0
roles/custom/matrix-bridge-hookshot/defaults/main.yml View File

@@ -242,6 +242,18 @@ matrix_hookshot_widgets_branding_widgetTitle: "Hookshot Configuration" # noqa
# level: admin # level: admin
matrix_hookshot_permissions: [] matrix_hookshot_permissions: []


# Static connections that can be configured by an administrator, as documented here:
# https://matrix-org.github.io/matrix-hookshot/latest/usage/static_connections.html
# Currently only generic webhooks are supported.
# Example:
# matrix_hookshot_connections:
# - connectionType: uk.half-shot.matrix-hookshot.generic.hook
# stateKey: my-unique-webhook-id
# roomId: "!room-id"
# state:
# name: My Static Webhook
matrix_hookshot_connections: []

matrix_hookshot_bot_displayname: Hookshot Bot matrix_hookshot_bot_displayname: Hookshot Bot
matrix_hookshot_bot_avatar: 'mxc://half-shot.uk/2876e89ccade4cb615e210c458e2a7a6883fe17d' matrix_hookshot_bot_avatar: 'mxc://half-shot.uk/2876e89ccade4cb615e210c458e2a7a6883fe17d'




+ 1
- 0
roles/custom/matrix-bridge-hookshot/templates/config.yaml.j2 View File

@@ -137,6 +137,7 @@ widgets:
{% if matrix_hookshot_permissions %} {% if matrix_hookshot_permissions %}
permissions: {{ matrix_hookshot_permissions | to_json }} permissions: {{ matrix_hookshot_permissions | to_json }}
{% endif %} {% endif %}
connections: {{ matrix_hookshot_connections | to_json }}
listeners: listeners:
# (Optional) HTTP Listener configuration. # (Optional) HTTP Listener configuration.
# Bind resource endpoints to ports and addresses. # Bind resource endpoints to ports and addresses.


Loading…
Cancel
Save