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