email: use the nginx generated certs.
This commit is contained in:
parent
bc2e781586
commit
ad6280189b
1 changed files with 12 additions and 0 deletions
|
@ -110,6 +110,15 @@
|
||||||
{record=cfg.host.ip; r_type="PTR"; value="${cfg.sub}.${cfg.domain}.";}
|
{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 = {
|
mailserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
fqdn = "${cfg.sub}.${cfg.domain}";
|
fqdn = "${cfg.sub}.${cfg.domain}";
|
||||||
|
@ -117,6 +126,9 @@
|
||||||
cfg.domain
|
cfg.domain
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# use the letsencrypt certs
|
||||||
|
certificateScheme = "acme";
|
||||||
|
|
||||||
# 20MB max size
|
# 20MB max size
|
||||||
messageSizeLimit = 20000000;
|
messageSizeLimit = 20000000;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue