VEGAS/mail: use dns01 for certifcate
This commit is contained in:
parent
e2e3e01eb0
commit
2e2841264f
1 changed files with 10 additions and 10 deletions
|
@ -1,18 +1,18 @@
|
|||
{ depot, ... }:
|
||||
{ depot, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./imap.nix
|
||||
./opendkim.nix
|
||||
./postfix.nix
|
||||
];
|
||||
services.nginx.virtualHosts."mail.${depot.lib.meta.domain}" = {
|
||||
enableACME = true;
|
||||
locations."/".return = "204";
|
||||
};
|
||||
security.acme.certs."mail.${depot.lib.meta.domain}".extraDomainNames = map
|
||||
(x: "${x}.${depot.lib.meta.domain}") [
|
||||
|
||||
security.acme.certs."mail.${depot.lib.meta.domain}" = {
|
||||
dnsProvider = "exec";
|
||||
webroot = lib.mkForce null;
|
||||
extraDomainNames = map (x: "${x}.${depot.lib.meta.domain}") [
|
||||
"mx"
|
||||
"imap"
|
||||
"smtp"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue