cluster/services/websites: add top-level dns record

This commit is contained in:
Max Headroom 2023-12-03 17:51:48 +01:00
parent eae6934b92
commit 93ceb5c0ea

View file

@ -51,7 +51,16 @@ in
};
};
dns.records = lib.genAttrs [ "www" "draw" "stop-using-nix-env" "whoami" ] (lib.const {
dns.records = lib.mkMerge [
(lib.genAttrs [ "www" "draw" "stop-using-nix-env" "whoami" ] (lib.const {
consulService = "static-lb";
});
}))
{
CNAME = {
name = "@";
type = "CNAME";
target = [ "www.${domain}." ];
};
}
];
}