diff options
author | Rory& <root@rory.gay> | 2024-11-04 08:09:37 +0100 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-11-04 08:09:37 +0100 |
commit | a2d5cfcd7f3641d8880962f6e8782f65b384a448 (patch) | |
tree | 106de09a71b4617389a44e51f6cade4a6bb8fd74 | |
parent | Autodiscover should be imported (diff) | |
download | Rory-Open-Architecture-a2d5cfcd7f3641d8880962f6e8782f65b384a448.tar.xz |
Autodiscover -> autoconfig
-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"; |