mailsystem: Add option to use selfsigned certificates in preparation for testing

This commit is contained in:
Thomas Preisner 2024-12-05 16:04:01 +01:00
parent 6d6b856bee
commit a592881b8b
5 changed files with 84 additions and 18 deletions

View file

@ -121,6 +121,8 @@ in {
proxyPass = "http://unix:${rspamdControllerSocket}:/";
basicAuthFile = cfg.rspamd.webUi.basicAuthFile;
};
sslCertificate = lib.mkIf (cfg.certificateScheme == "selfsigned") sslCertPath;
sslCertificateKey = lib.mkIf (cfg.certificateScheme == "selfsigned") sslKeyPath;
};
};
};