Ver a proveniência

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 há 1 mês
ascendente
cometimento
911031e2cf
2 ficheiros alterados com 13 adições e 0 eliminações
  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 Ver ficheiro

@@ -242,6 +242,18 @@ matrix_hookshot_widgets_branding_widgetTitle: "Hookshot Configuration" # noqa
# level: admin
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_avatar: 'mxc://half-shot.uk/2876e89ccade4cb615e210c458e2a7a6883fe17d'



+ 1
- 0
roles/custom/matrix-bridge-hookshot/templates/config.yaml.j2 Ver ficheiro

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


Carregando…
Cancelar
Guardar