email: use the nginx generated certs.

This commit is contained in:
silver 2023-07-16 02:44:22 +01:00
parent bc2e781586
commit ad6280189b

View file

@ -110,6 +110,15 @@
{record=cfg.host.ip; r_type="PTR"; value="${cfg.sub}.${cfg.domain}.";}
];
# to provide the certs
services.nginx.virtualHosts = {
"${cfg.sub}.${cfg.domain}" = {
forceSSL = true;
useACMEHost = "skynet";
serverName = "${cfg.sub}.${cfg.domain}";
};
};
mailserver = {
enable = true;
fqdn = "${cfg.sub}.${cfg.domain}";
@ -117,6 +126,9 @@
cfg.domain
];
# use the letsencrypt certs
certificateScheme = "acme";
# 20MB max size
messageSizeLimit = 20000000;