default host config

This commit is contained in:
Satria 2026-03-01 16:00:27 +07:00
commit 428ef2c475

View file

@ -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;