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 = [
|
imports = [
|
||||||
./imap.nix
|
./imap.nix
|
||||||
./opendkim.nix
|
./opendkim.nix
|
||||||
./postfix.nix
|
./postfix.nix
|
||||||
];
|
];
|
||||||
services.nginx.virtualHosts."mail.${depot.lib.meta.domain}" = {
|
|
||||||
enableACME = true;
|
security.acme.certs."mail.${depot.lib.meta.domain}" = {
|
||||||
locations."/".return = "204";
|
dnsProvider = "exec";
|
||||||
};
|
webroot = lib.mkForce null;
|
||||||
security.acme.certs."mail.${depot.lib.meta.domain}".extraDomainNames = map
|
extraDomainNames = map (x: "${x}.${depot.lib.meta.domain}") [
|
||||||
(x: "${x}.${depot.lib.meta.domain}") [
|
|
||||||
"mx"
|
"mx"
|
||||||
"imap"
|
"imap"
|
||||||
"smtp"
|
"smtp"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue