system/machines/magenta/services/mailserver.nix

26 lines
585 B
Nix
Raw Normal View History

2022-10-18 00:42:23 +03:00
{ ... }:
{
2022-10-19 19:17:37 +03:00
imports = [ ./mailserver-accounts.secret.nix ];
2022-10-18 00:42:23 +03:00
# See: https://nixos-mailserver.readthedocs.io/en/latest/options.html
mailserver = {
enable = true;
fqdn = "mail.pleshevski.ru";
domains = [ "pleshevski.ru" ];
# Use Let's Encrypt certificates. Note that this needs to set up a stripped
# down nginx and opens port 80.
certificateScheme = 3;
hierarchySeparator = "/";
};
2023-03-04 23:22:03 +03:00
# required for certificateScheme = 3
# TODO: Try to use traefik
services.nginx = {
defaultHTTPListenPort = 10080;
defaultSSLListenPort = 10443;
};
2022-10-18 00:42:23 +03:00
}