From fccd7442d665b1370894634d01ed1761dde68ed8 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sat, 16 Aug 2025 06:14:14 +0300 Subject: [PATCH] Add a few more `generic.` webhook settings for Hookshot Ref: https://github.com/matrix-org/matrix-hookshot/pull/1004 --- roles/custom/matrix-bridge-hookshot/defaults/main.yml | 3 +++ roles/custom/matrix-bridge-hookshot/templates/config.yaml.j2 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/roles/custom/matrix-bridge-hookshot/defaults/main.yml b/roles/custom/matrix-bridge-hookshot/defaults/main.yml index 2895e7283..49437fa4f 100644 --- a/roles/custom/matrix-bridge-hookshot/defaults/main.yml +++ b/roles/custom/matrix-bridge-hookshot/defaults/main.yml @@ -181,6 +181,9 @@ matrix_hookshot_generic_urlPrefix: "{{ matrix_hookshot_urlprefix }}{{ matrix_hoo matrix_hookshot_generic_userIdPrefix: '_webhooks_' # noqa var-naming matrix_hookshot_generic_allowJsTransformationFunctions: false # noqa var-naming matrix_hookshot_generic_waitForComplete: false # noqa var-naming +matrix_hookshot_generic_sendExpiryNotice: false # noqa var-naming +matrix_hookshot_generic_requireExpiryTime: false # noqa var-naming +matrix_hookshot_generic_maxExpiryTime: "30d" # noqa var-naming matrix_hookshot_feeds_enabled: true diff --git a/roles/custom/matrix-bridge-hookshot/templates/config.yaml.j2 b/roles/custom/matrix-bridge-hookshot/templates/config.yaml.j2 index 343114a56..0e993f9d0 100644 --- a/roles/custom/matrix-bridge-hookshot/templates/config.yaml.j2 +++ b/roles/custom/matrix-bridge-hookshot/templates/config.yaml.j2 @@ -80,6 +80,9 @@ generic: userIdPrefix: {{ matrix_hookshot_generic_userIdPrefix | to_json }} allowJsTransformationFunctions: {{ matrix_hookshot_generic_allowJsTransformationFunctions | to_json }} waitForComplete: {{ matrix_hookshot_generic_waitForComplete | to_json }} + sendExpiryNotice: {{ matrix_hookshot_generic_sendExpiryNotice | to_json }} + requireExpiryTime: {{ matrix_hookshot_generic_requireExpiryTime | to_json }} + maxExpiryTime: {{ matrix_hookshot_generic_maxExpiryTime | to_json }} {% endif %} {% if matrix_hookshot_feeds_enabled %} feeds: