fix: website to working webhooks version

This commit is contained in:
Jet 2026-03-25 23:26:21 -07:00
parent 802de6967f
commit 85ec8e01fe
No known key found for this signature in database
3 changed files with 28 additions and 8 deletions

View file

@ -45,11 +45,28 @@
user = "admin";
secret = "%{file:/run/agenix/stalwart-admin}%";
};
session.hook."qa-webhook" = {
enable = "contains(recipients, 'qa@jetpham.com')";
url = "http://127.0.0.1:3003/api/webhook";
stages = [ "data" ];
auth = {
username = "qa-webhook";
secret = "%{file:${config.age.secrets.webhook-secret.path}}%";
};
options = {
"tempfail-on-error" = true;
"max-response-size" = 1048576;
};
};
};
};
# Allow Stalwart to read the ACME certificate procured for Caddy and the agenix secret
systemd.services.stalwart.serviceConfig.SupplementaryGroups = [ "acme" ];
systemd.services.stalwart.serviceConfig.ReadOnlyPaths = [ "/run/agenix/stalwart-admin" ];
systemd.services.stalwart.serviceConfig.ReadOnlyPaths = [
"/run/agenix/stalwart-admin"
config.age.secrets.webhook-secret.path
];
}