tend to merge request comments

This commit is contained in:
Nek0 - 2022-12-18 20:27:30 +01:00
parent b3e12755eb
commit 4a35734f66
1 changed files with 12 additions and 16 deletions

View File

@ -54,6 +54,13 @@ in
group = config.systemd.services.dovecot2.serviceConfig.Group;
};
networking = {
hosts = with zentralwerk.lib.config.site.net.serv; {
${hosts6.up4.auth} = [ "auth.c3d2.de" ];
${hosts4.auth} = [ "auth.c3d2.de" ];
};
};
services = {
postfix = {
enable = true;
@ -193,14 +200,9 @@ in
};
nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedTlsSettings = true;
virtualHosts."${domain}" = {
serverAliases = [ ];
forceSSL = true;
enableACME = true;
http2 = true;
/*
locations."/rspamd/" = {
proxyPass = "http://127.0.0.1:11334/";
@ -213,17 +215,11 @@ in
};
};
security.acme = {
acceptTerms = true;
preliminarySelfsigned = true;
defaults.renewInterval = "*-01,03,05,07,09,11-01 00:00:00";
certs = {
"${domain}" = {
email = "root@c3d2.de";
extraDomainNames = [ ];
postRun = "systemctl restart postfix.service dovecot2.service";
};
};
security.acme.certs."${domain}" = {
reloadServices = [
"postfix.service"
"dovecot2.service"
];
};
};
}