summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-04-03 20:16:12 +0200
committerRory& <root@rory.gay>2024-06-05 17:25:16 +0200
commit7f7efe145aece6fed626f64fed5cfabbbc1a0427 (patch)
tree47cb377ae730a75df6b225da20bd5bc8e62c2726
parentDont log commit log on auto redeploy (diff)
downloadSpacebar-Open-Infrastructure-7f7efe145aece6fed626f64fed5cfabbbc1a0427.tar.xz
Fix ACME
-rwxr-xr-xhost/Spacebar-nginx/configuration.nix1
-rw-r--r--host/Spacebar-nginx/hosts/spacebar.local/secrets.nix3
2 files changed, 4 insertions, 0 deletions
diff --git a/host/Spacebar-nginx/configuration.nix b/host/Spacebar-nginx/configuration.nix
index 54884b9..cd412ef 100755
--- a/host/Spacebar-nginx/configuration.nix
+++ b/host/Spacebar-nginx/configuration.nix
@@ -37,6 +37,7 @@
   systemd.services.nginx.requires = [ "data.mount" ];
   security.acme.acceptTerms = true;
   security.acme.defaults.email = "chris@spacebar.chat";
+  # security.acme.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
 
   system.stateVersion = "22.11"; # DO NOT EDIT!
 }
diff --git a/host/Spacebar-nginx/hosts/spacebar.local/secrets.nix b/host/Spacebar-nginx/hosts/spacebar.local/secrets.nix
index d52d481..cc0e299 100644
--- a/host/Spacebar-nginx/hosts/spacebar.local/secrets.nix
+++ b/host/Spacebar-nginx/hosts/spacebar.local/secrets.nix
@@ -13,5 +13,8 @@
         "deny all;"
         ;
     };
+    "^~ /.well-known/acme-challenge/" = {
+      root = "/var/lib/acme/acme-challenge";
+    };
   };
 }