add mailserver acme setup
This commit is contained in:
parent
e61fb86afc
commit
28bca23b69
1 changed files with 12 additions and 0 deletions
|
|
@ -50,6 +50,18 @@
|
|||
};
|
||||
})
|
||||
|
||||
# Configure ACME certificate via nginx
|
||||
(lib.mkIf
|
||||
(config.osbmModules.services.nginx.enable && config.osbmModules.services.mailserver.enable)
|
||||
{
|
||||
services.nginx.virtualHosts."${config.mailserver.fqdn}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".return = "404"; # Just for ACME, no actual web content
|
||||
};
|
||||
}
|
||||
)
|
||||
|
||||
# mailserver and impermanence
|
||||
(lib.mkIf
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue