diff options
author | Rory& <root@rory.gay> | 2024-11-04 03:53:02 +0100 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-11-04 03:53:02 +0100 |
commit | 4dd2c3dda61928540acc5c87701dddd0d676ec72 (patch) | |
tree | 9ed96f4e91cb77c6d712eb850c058ce7f9ac808c | |
parent | Fix resolvconf BS (diff) | |
download | Rory-Open-Architecture-4dd2c3dda61928540acc5c87701dddd0d676ec72.tar.xz |
Autodiscover
-rw-r--r-- | host/Rory-nginx/services/email/autoconfig.nix | 18 | ||||
-rw-r--r-- | host/Rory-nginx/services/email/nginx.nix | 5 |
2 files changed, 23 insertions, 0 deletions
diff --git a/host/Rory-nginx/services/email/autoconfig.nix b/host/Rory-nginx/services/email/autoconfig.nix new file mode 100644 index 0000000..7dd183a --- /dev/null +++ b/host/Rory-nginx/services/email/autoconfig.nix @@ -0,0 +1,18 @@ +{ ... }: +{ + services.go-autoconfig = { + enable = true; + settings = { + service_addr = ":1323"; + domain = "autodiscover.rory.gay"; + imap = { + server = "rory.gay"; + port = 993; + }; + smtp = { + server = "rory.gay"; + port = 587; + }; + }; + }; +} diff --git a/host/Rory-nginx/services/email/nginx.nix b/host/Rory-nginx/services/email/nginx.nix index cb2e4e1..ba1a172 100644 --- a/host/Rory-nginx/services/email/nginx.nix +++ b/host/Rory-nginx/services/email/nginx.nix @@ -23,5 +23,10 @@ "/".return = "200 'OK'"; }; }; + "autodiscover.rory.gay" = { + enableACME = true; + forceSSL = true; + locations."/".proxyPass = "http://localhost:1323"; + }; }; } |