fix: website to working webhooks version
This commit is contained in:
parent
802de6967f
commit
85ec8e01fe
3 changed files with 28 additions and 8 deletions
|
|
@ -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
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue