From 428ef2c47525a77e71d8ed024217961b26bd02c6 Mon Sep 17 00:00:00 2001 From: Satria Date: Sun, 1 Mar 2026 16:00:27 +0700 Subject: [PATCH] default host config --- modules/system/homelab/proxy.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;