VEGAS/mail: use dns01 for certifcate

This commit is contained in:
Max Headroom 2024-07-02 16:47:48 +02:00
parent e2e3e01eb0
commit 2e2841264f

View file

@ -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}" = {
dnsProvider = "exec";
webroot = lib.mkForce null;
extraDomainNames = map (x: "${x}.${depot.lib.meta.domain}") [
"mx"
"imap"
"smtp"
];
};
security.acme.certs."mail.${depot.lib.meta.domain}".extraDomainNames = map
(x: "${x}.${depot.lib.meta.domain}") [
"mx"
"imap"
"smtp"
];
}