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