vps1: mailserver: fix certs, add hashed passwords

This commit is contained in:
Lgmrszd 2024-05-16 01:39:15 +03:00
parent 39e630f12a
commit 264a6ba126
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE

View file

@ -13,7 +13,17 @@ in
domain domain
gitDomain gitDomain
]; ];
certificateScheme = "acme";
# certificateScheme = "acme";
# Cannot be used since it uses fqdn
certificateScheme = "manual";
certificateFile = "${config.security.acme.certs.${rootDomain}.directory}/fullchain.pem";
keyFile = "${config.security.acme.certs.${rootDomain}.directory}/key.pem";
security.acme.certs."${rootDomain}".reloadServices = [
"postfix.service"
"dovecot2.service"
];
enableManageSieve = true; enableManageSieve = true;
indexDir = "/var/lib/dovecot/indices"; indexDir = "/var/lib/dovecot/indices";
@ -26,11 +36,13 @@ in
"postmaster@${rootDomain}" "postmaster@${rootDomain}"
"abuse@${rootDomain}" "abuse@${rootDomain}"
]; ];
hashedPassword = "$2b$05$E18a4pSMfEmd.mfVGQEJe.JBTS3jxdf6yLDZdOQNIs9NrNMc5K.cK";
}; };
"forgejo@${rootDomain}" = { "forgejo@${rootDomain}" = {
aliases = [ aliases = [
"@${gitDomain}" "@${gitDomain}"
]; ];
hashedPassword = "$2b$05$IlDxRGJ6vOUjDIq0hfCd3uIVLQw0oodRU1cG8pKueO1BgaIfpUYPS";
}; };
}; };
}; };