From 7f7efe145aece6fed626f64fed5cfabbbc1a0427 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 3 Apr 2023 20:16:12 +0200 Subject: Fix ACME --- host/Spacebar-nginx/configuration.nix | 1 + host/Spacebar-nginx/hosts/spacebar.local/secrets.nix | 3 +++ 2 files changed, 4 insertions(+) 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"; + }; }; } -- cgit 1.4.1