diff --git a/hosts/hainich/services/nginx.nix b/hosts/hainich/services/nginx.nix index 9a2f162..4dc2f53 100644 --- a/hosts/hainich/services/nginx.nix +++ b/hosts/hainich/services/nginx.nix @@ -12,14 +12,10 @@ services.nginx.virtualHosts = let in { + # let all empty subdomains pointing to hainich return 404 "hainich.hacc.space" = { - enableACME = true; - forceSSL = true; - locations = { - "/" = { - return = "404"; - }; - }; + default = true; + locations."/".return = "404"; }; };