From 3af4c9373bc7213d0440c64ee5725f956d53c85e Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sun, 13 Oct 2024 06:28:50 +0200 Subject: [PATCH] bicep/matrix/hookshot: enable generic and feeds --- hosts/bicep/services/matrix/hookshot/default.nix | 13 +++++++++++++ secrets/bicep/matrix.yaml | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/hosts/bicep/services/matrix/hookshot/default.nix b/hosts/bicep/services/matrix/hookshot/default.nix index 4c64494..fd0ea19 100644 --- a/hosts/bicep/services/matrix/hookshot/default.nix +++ b/hosts/bicep/services/matrix/hookshot/default.nix @@ -48,9 +48,22 @@ in generic = { enabled = true; outbound = true; + urlPrefix = "https://hookshot.pvv.ntnu.no/webhook/"; + userIdPrefix = "_webhooks_"; + allowJsTransformationFunctions = false; + waitForComplete = false; }; feeds = { enabled = true; + pollIntervalSeconds = 600; + }; + + serviceBots = { + localpart = "bot_feeds"; + displayname = "Feeds"; + # avatar = ./somefile.png; + prefix = "!feeds"; + service = "feeds"; }; }; }; diff --git a/secrets/bicep/matrix.yaml b/secrets/bicep/matrix.yaml index 9216900..c165333 100644 --- a/secrets/bicep/matrix.yaml +++ b/secrets/bicep/matrix.yaml @@ -8,7 +8,7 @@ mjolnir: access_token: ENC[AES256_GCM,data:ERFqZjK7MRD0xWt91FNCIxP1YC6Qj54QgnckHlCTtcQVLWaM1h2h9lHS+K8=,iv:1d7vmFkXAPcsmumzlmOT31amdrKLWtL5sJiS8G9g+LE=,tag:2l0vWzJ6P12ofuBdf5CCWw==,type:str] registrations: mx-puppet-discord: ENC[AES256_GCM,data:FleyXxgOmc05nTP6M2DBJlacufN3p/05eZm4kB8+K4ci0k24o3zli988wlM/kyeZmxu4pgQlJ3lNLte4uip2hBXHWG5t5Ldzmr7bNCUD+r7nM+I1lfNkrDROPZ54bHysmn9O5CHpEa16rSo6RJgncIPqsLJxTwjC7qZlkOpzqvMhkq/MHCVOpvg0M/6AUR+AlSZoggujBMoX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t/6RwtIbDA0DSoXUTin9vRLHccd2mYNKoHS1b2HL/pkAEsDXPXkaJOkqF2XlhzJPDJSSCbRNIzQdiaA6oAL7Uo8z009x2q4ZiaqTDMSfk2JKr7uQju3671Y3GJJrVI4Hesq/MsGmot+cw0id2uWKws6FovuKtlTnw7NFOWj08aw/udbJvA5c6xJTodSeOkRynQJdYYW190i8pD78kgv9FbqXzg0bS0kBNyVdYtGgmzLSixpLLTlXGz8L1UW5N+L8+4W2IfrXq6bNZC64Ycut3Qyvjhf+ZOzTZ9kF9OVywKAqSvYBisc/dSPA2j70Gcvj7hJIRyNjxXmEBgyjLAfTkI/RrmfxaZQAHw1LkiavDi77ewBgVZaBYr4X4kqU3t1NbtuiWAuY+j0TUNXNVG5XvWpiulDu9X6dsRR6XWTYrLog29+ojiijzyoCXLg=,iv:exsAws3aC9IrcgfLp53nHgOtQUrkAv8AuLctK7wmE+Q=,tag:OLOBSYIFEorXUVaT1WTouw==,type:str] sops: kms: [] gcp_kms: [] @@ -69,8 +69,8 @@ sops: WEh5NFN6SFF1TlltdWFWTGw4MHRHUkUKrKIvC87xjEmwxPQhH8dN+ZuaJTCgPY28 pR62KxmoKFICLTHPpYP3euiAx5M9BWvgvCnA/US/5klpk8MtlreNFA== -----END AGE ENCRYPTED FILE----- - lastmodified: "2024-10-13T04:02:47Z" - mac: ENC[AES256_GCM,data:e9UTv8AbchriDXpfWjTKb6QdtqXiTMI9JsoA829eTjbVeoo0Mu5JmYorqORAtLvpsIOICRRR/DvQ4RDV/QZSpRUKWuZ6YKBm10C3eGwmX+CaRkgk8rxQn77XG5M1jFNtmALYp8/ssp145Akp8hNP9Ew+s/hX/Pw6PqPArlyoPdM=,iv:aRcuwbEIM0dLCMzoAwFi7K2w8GjYaWyNby+bSmm8/tY=,tag:Ku8dpZt0kgDH7qpfqSpw0Q==,type:str] + lastmodified: "2024-10-13T04:16:52Z" + mac: ENC[AES256_GCM,data:D9QUPhYKfyQMTDDga5eWbTc5yNj2H8oBgei25n4ZeDVnMr0zGFkedienoSneWLxfcocLUVvWnDDiGvWYzMj1Eq3eJMlki0V8rpKpTBCyjNogAt52voAkSOm4vYtbQEbcHr5pRU4gB3UIk21bOcFIV8CIviPJKoJ+WeH+eerAv+w=,iv:mHkoqp/i2tXI3T1GkSLupP/1B2g1aNH+bBKFU0DzNwI=,tag:ALcMq9bgIVngdTOHUzS/hg==,type:str] pgp: - created_at: "2024-08-04T00:03:46Z" enc: |-