summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-11-03 01:01:52 +0100
committerRory& <root@rory.gay>2024-11-03 01:01:52 +0100
commit36c0166bc018a412ea7f2f1f42ae94e54f6f5612 (patch)
tree6dfef823e5e0486f0d42eff8e1a8ac9b1270c9ec /host
parentMaddy is nginx (diff)
downloadRory-Open-Architecture-36c0166bc018a412ea7f2f1f42ae94e54f6f5612.tar.xz
Certificates are objects
Diffstat (limited to 'host')
-rw-r--r--host/Rory-nginx/services/email/maddy.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/host/Rory-nginx/services/email/maddy.nix b/host/Rory-nginx/services/email/maddy.nix
index 75c490f..87421de 100644
--- a/host/Rory-nginx/services/email/maddy.nix
+++ b/host/Rory-nginx/services/email/maddy.nix
@@ -30,8 +30,10 @@
     tls = {
       loader = "file";
       certificates = [
-        "/var/lib/acme/certs/mail.rory.gay/fullchain.pem"
-        "/var/lib/acme/certs/mail.rory.gay/privkey.pem"
+        {
+          certPath = "/var/lib/acme/certs/mail.rory.gay/fullchain.pem";
+          keyPath = "/var/lib/acme/certs/mail.rory.gay/privkey.pem";
+        }
       ];
     };
   };
@@ -40,9 +42,9 @@
     465
   ];
 
-#  security.acme.certs."mail.rory.gay" = {
-#    group = config.services.maddy.group;
-#  };
+  #  security.acme.certs."mail.rory.gay" = {
+  #    group = config.services.maddy.group;
+  #  };
 
   users.users.maddy.extraGroups = [ "nginx" ];
 }