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 = [ 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"
]; ];
};
} }