stalwart: use correct domain for certs
This commit is contained in:
parent
d95717941d
commit
1edeffc961
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ let
|
||||||
stalwart_user = config.users.users.stalwart-mail.name;
|
stalwart_user = config.users.users.stalwart-mail.name;
|
||||||
stalwart_group = config.users.groups.stalwart-mail.name;
|
stalwart_group = config.users.groups.stalwart-mail.name;
|
||||||
|
|
||||||
certLocation = config.security.acme.certs."${svc_domain}".directory;
|
certLocation = config.security.acme.certs."${svc_domain_mail}".directory;
|
||||||
in {
|
in {
|
||||||
services.stalwart-mail = {
|
services.stalwart-mail = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -161,7 +161,7 @@ in {
|
||||||
|
|
||||||
# need to change group to stalwart-mail for cert + add nginx to stalwart-mail group to do HTTP ACME
|
# 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 ];
|
users.users.nginx.extraGroups = [ stalwart_group ];
|
||||||
security.acme.certs."${svc_domain}" = {
|
security.acme.certs."${svc_domain_mail}" = {
|
||||||
group = stalwart_group;
|
group = stalwart_group;
|
||||||
reloadServices = [ config.systemd.services.stalwart-mail.name ];
|
reloadServices = [ config.systemd.services.stalwart-mail.name ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue