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";
+ };
};
}
|