From adc3fae69e757487e4479e818bf28a241e3842dd Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Fri, 27 Dec 2024 21:59:07 -0800 Subject: [PATCH] foundry: clean up cert testing --- modules/foundry.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/foundry.nix b/modules/foundry.nix index 194342b..e7b37c6 100644 --- a/modules/foundry.nix +++ b/modules/foundry.nix @@ -16,12 +16,9 @@ in { # permafrost.nginx.certDomains = lib.mkIf ACMEEnabled [ "scarlet.zynh.me" ]; services.nginx.virtualHosts."scarlet.zynh.me" = { - forceSSL = lib.mkIf ACMEEnabled true; serverName = "scarlet.zynh.me"; + forceSSL = lib.mkIf ACMEEnabled true; useACMEHost = lib.mkIf ACMEEnabled "permafrost"; - locations."/.well-known/acme-challenge" = { - root = "/var/lib/acme/.challenges"; - }; locations."/" = { extraConfig = /* nginx */ '' # Set proxy headers