From fa3f1b35700cfe0b7702343a00cdf97c53a5252f Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 31 Mar 2025 00:46:59 -0700 Subject: [PATCH] matrix: add missing hookshot configs --- k8s/matrix/hookshot/config.yml | 86 ++++++++++++++++++++++++++++ k8s/matrix/hookshot/passkey.pem | 1 + k8s/matrix/hookshot/registration.yml | 9 +++ 3 files changed, 96 insertions(+) create mode 100644 k8s/matrix/hookshot/config.yml create mode 100644 k8s/matrix/hookshot/passkey.pem create mode 100644 k8s/matrix/hookshot/registration.yml diff --git a/k8s/matrix/hookshot/config.yml b/k8s/matrix/hookshot/config.yml new file mode 100644 index 0000000..9266f12 --- /dev/null +++ b/k8s/matrix/hookshot/config.yml @@ -0,0 +1,86 @@ +bot: + avatar: mxc://half-shot.uk/2876e89ccade4cb615e210c458e2a7a6883fe17d + displayname: Hookshot Bot +bridge: + bindAddress: 0.0.0.0 + domain: janky.bot + mediaUrl: https://hookshot.janky.bot + port: 9993 + url: http://homeserver-janky-bot:8008 +github: + enterpriseUrl: "https://git.janky.solutions" + auth: + id: 123 + privateKeyFile: github-key.pem + webhook: + secret: secrettoken + oauth: + client_id: foo + client_secret: bar + redirect_uri: https://example.com/oauth/ + defaultOptions: + showIssueRoomLink: false +generic: + allowJsTransformationFunctions: true + enableHttpGet: false + enabled: false + urlPrefix: https://hookshot.janky.bot/webhook/ + userIdPrefix: _webhooks_ + waitForComplete: false +listeners: +- bindAddress: 0.0.0.0 + port: 9000 + resources: + - webhooks + - widgets +- bindAddress: 127.0.0.1 + port: 9001 + resources: + - metrics + - provisioning +logging: + colorize: true + json: false + level: info + timestampFormat: HH:mm:ss:SSS +metrics: + enabled: true +passFile: /data/passkey.pem +permissions: +- actor: "@finn@janky.solutions" + services: + - level: admin + service: '*' +serviceBots: +- avatar: ./assets/feeds_avatar.png + displayname: Feeds + localpart: hookshot_feeds + prefix: '!feeds' + service: feeds +widgets: + addToAdminRooms: false + branding: + widgetTitle: Hookshot Configuration + disallowedIpRanges: + - 127.0.0.0/8 + - 10.0.0.0/8 + - 172.16.0.0/12 + - 192.168.0.0/16 + - 100.64.0.0/10 + - 192.0.0.0/24 + - 169.254.0.0/16 + - 192.88.99.0/24 + - 198.18.0.0/15 + - 192.0.2.0/24 + - 198.51.100.0/24 + - 203.0.113.0/24 + - 224.0.0.0/4 + - ::1/128 + - fe80::/10 + - fc00::/7 + - 2001:db8::/32 + - ff00::/8 + - fec0::/10 + publicUrl: https://hookshot.janky.bot/widgetapi/v1/static/ + roomSetupWidget: + addOnInvite: false diff --git a/k8s/matrix/hookshot/passkey.pem b/k8s/matrix/hookshot/passkey.pem new file mode 100644 index 0000000..326bf67 --- /dev/null +++ b/k8s/matrix/hookshot/passkey.pem @@ -0,0 +1 @@ +{{ .hookshotPasskey }} diff --git a/k8s/matrix/hookshot/registration.yml b/k8s/matrix/hookshot/registration.yml new file mode 100644 index 0000000..7532242 --- /dev/null +++ b/k8s/matrix/hookshot/registration.yml @@ -0,0 +1,9 @@ +as_token: {{ .hookshotASToken }} +hs_token: {{ .hookshotHSToken }} +id: hookshot +namespaces: + rooms: [] + users: [] +rate_limited: false +sender_localpart: hookshot +url: http://hookshot:9993