stalwart: automatically reload when cert is updated

This commit is contained in:
eyjhb 2025-01-17 20:25:29 +01:00
parent f9df7a63c5
commit 20ce4199ba
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -146,8 +146,10 @@ in {
# need to change group to stalwart-mail for cert + add nginx to stalwart-mail group to do HTTP ACME
users.users.nginx.extraGroups = [ stalwart_group ];
security.acme.certs."${svc_domain}".group = stalwart_group;
security.acme.certs."${svc_domain}" = {
group = stalwart_group;
reloadServices = [ config.systemd.services.stalwart-mail.name ];
};
# setup secrets for stalwart
# setup access to ldap bind user credential