diff options
Diffstat (limited to 'host/Rory-nginx/services')
-rw-r--r-- | host/Rory-nginx/services/email/autoconfig.nix | 2 | ||||
-rw-r--r-- | host/Rory-nginx/services/email/maddy.nix | 5 | ||||
-rw-r--r-- | host/Rory-nginx/services/email/nginx.nix | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/host/Rory-nginx/services/email/autoconfig.nix b/host/Rory-nginx/services/email/autoconfig.nix index 7dd183a..d258046 100644 --- a/host/Rory-nginx/services/email/autoconfig.nix +++ b/host/Rory-nginx/services/email/autoconfig.nix @@ -4,7 +4,7 @@ enable = true; settings = { service_addr = ":1323"; - domain = "autodiscover.rory.gay"; + domain = "autoconfig.rory.gay"; imap = { server = "rory.gay"; port = 993; diff --git a/host/Rory-nginx/services/email/maddy.nix b/host/Rory-nginx/services/email/maddy.nix index ac8c7fb..0dfc2e4 100644 --- a/host/Rory-nginx/services/email/maddy.nix +++ b/host/Rory-nginx/services/email/maddy.nix @@ -37,14 +37,11 @@ ]; }; }; + networking.firewall.allowedTCPPorts = [ 993 465 ]; - # security.acme.certs."mail.rory.gay" = { - # group = config.services.maddy.group; - # }; - users.users.maddy.extraGroups = [ "nginx" ]; } diff --git a/host/Rory-nginx/services/email/nginx.nix b/host/Rory-nginx/services/email/nginx.nix index ba1a172..812993a 100644 --- a/host/Rory-nginx/services/email/nginx.nix +++ b/host/Rory-nginx/services/email/nginx.nix @@ -23,7 +23,7 @@ "/".return = "200 'OK'"; }; }; - "autodiscover.rory.gay" = { + "autoconfig.rory.gay" = { enableACME = true; forceSSL = true; locations."/".proxyPass = "http://localhost:1323"; |