diff --git a/modules/system/homelab/proxy.nix b/modules/system/homelab/proxy.nix index 195f241..b5bb14b 100644 --- a/modules/system/homelab/proxy.nix +++ b/modules/system/homelab/proxy.nix @@ -25,9 +25,11 @@ in { virtualHosts = { "_" = { default = true; + forceSSL = true; + useACMEHost = base; locations."/".return = "404"; }; - } // lib.mapAttrs' (subdomain: cfg: lib.nameValuePair (if subdomain == "@" then base else "${subdomain}.${base}") { + } // lib.mapAttrs (subdomain: cfg: lib.nameValuePair (if subdomain == "@" then base else "${subdomain}.${base}") { useACMEHost = base; forceSSL = true;