feat: stalwart proxy with ldap directory
This commit is contained in:
parent
d7cf0baf67
commit
854caa3742
12 changed files with 229 additions and 87 deletions
|
|
@ -7,6 +7,11 @@ with lib;
|
|||
{
|
||||
options.mail-server = {
|
||||
enable = mkEnableOption "mail-server";
|
||||
|
||||
configureACME = mkEnableOption "Enable auto configuration of ACME" // {
|
||||
default = false;
|
||||
};
|
||||
|
||||
caFile = mkOption {
|
||||
type = types.path;
|
||||
default = config.security.pki.caBundle;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ let
|
|||
in
|
||||
{
|
||||
config = mkIf cfg.enable {
|
||||
security.acme.certs = {
|
||||
security.acme.certs = mkIf cfg.configureACME {
|
||||
"${config.services.postfix.settings.main.myhostname}" = {
|
||||
dnsProvider = null;
|
||||
webroot = "/var/lib/acme/acme-challenge";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue