Refactor arrtrix webhook to use fixed path and remove legacy config
Some checks failed
Test action / kaas (push) Failing after 1s
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:
parent
fe627f3aab
commit
bbfe6867c8
11 changed files with 211 additions and 285 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue