From edeedda316be96549486392036de6b1af6057f23 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 24 Mar 2025 13:15:37 +0100 Subject: [PATCH] default virtualHost --- server-modules/nginx.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server-modules/nginx.nix b/server-modules/nginx.nix index 4472c77..6573577 100644 --- a/server-modules/nginx.nix +++ b/server-modules/nginx.nix @@ -16,6 +16,11 @@ credentialsFile = config.sops.secrets.cloudflare-dns-token.path; }; + services.nginx.virtualHosts."default" = { + default = true; + locations."/" = { return = 444; }; + }; + networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedUDPPorts = [ 80 443 ]; }