Refactor arrtrix webhook to use fixed path and remove legacy config
Some checks failed
Test action / kaas (push) Failing after 1s

- Switch arrtrix webhook to a fixed path: /_arrtrix/webhook
- Remove Radarr-specific and secret-based config from arrtrix
- Simplify connector and webhook handler logic
- Update NixOS module to drop legacy webhook config
- Add new tests for generic arrtrix webhook handler
This commit is contained in:
Chris Kruining 2026-04-16 09:47:00 +02:00
parent fe627f3aab
commit bbfe6867c8
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
11 changed files with 211 additions and 285 deletions

View file

@ -18,7 +18,7 @@
keyFile = "/var/lib/element-call/key";
mkMautrix = bridge: i: conf: {
${bridge} =
${bridge} = mkMerge [
{
enable = true;
registerToSynapse = true;
@ -43,7 +43,8 @@
};
};
}
// conf;
conf
];
};
in {
options.${namespace}.services.communication.matrix = {
@ -110,7 +111,13 @@ in {
(mkMautrix "mautrix-signal" 1 {})
(mkMautrix "mautrix-telegram" 2 {})
(mkMautrix "mautrix-whatsapp" 3 {})
(mkMautrix "arrtrix" 4 {})
(mkMautrix "arrtrix" 4 {
settings.network.webhooks.radarr = {
enabled = true;
path = "/_arrtrix/webhooks/radarr";
secret = "";
};
})
{
matrix-synapse = {
enable = true;

View file

@ -15,11 +15,6 @@
settingsFormat = pkgs.formats.json {};
defaultConfig = {
network.webhooks.radarr = {
enabled = false;
path = "/_arrtrix/webhooks/radarr";
secret = "";
};
bridge = {
command_prefix = "!arr";
relay.enabled = true;