mirror of
https://codeberg.org/icewind/rss-webhook-trigger.git
synced 2026-11-30 04:00:49 +01:00
initial jwt support
This commit is contained in:
parent
ac55958f8c
commit
766a820f96
8 changed files with 1046 additions and 31 deletions
|
|
@ -9,12 +9,26 @@ with lib; let
|
|||
format = pkgs.formats.toml {};
|
||||
configFile = format.generate "trigger.toml" {
|
||||
feed = cfg.hooks;
|
||||
jwt = cfg.jwt;
|
||||
};
|
||||
in {
|
||||
options.services.rss-webhook-trigger = {
|
||||
enable = mkEnableOption "Enables the rss-webhook-trigger service";
|
||||
|
||||
hooks = mkOption rec {
|
||||
jwt = mkOption {
|
||||
description = "Configuration for generating JWT authorization tokens";
|
||||
type = types.nullOr (types.submodule {
|
||||
options = {
|
||||
secret = mkOption {
|
||||
type = types.str;
|
||||
description = "JWT secret";
|
||||
};
|
||||
};
|
||||
});
|
||||
default = null;
|
||||
};
|
||||
|
||||
hooks = mkOption {
|
||||
description = "Hook configuration";
|
||||
type = types.listOf (types.submodule {
|
||||
options = {
|
||||
|
|
@ -38,6 +52,7 @@ in {
|
|||
};
|
||||
};
|
||||
});
|
||||
default = [];
|
||||
};
|
||||
|
||||
log = mkOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue