cluster/services/websites: add dns records for old sites

This commit is contained in:
Max Headroom 2023-12-03 23:59:13 +01:00
parent 0a6755dac5
commit bde04dac87

View file

@ -51,7 +51,9 @@ in
};
};
dns.records = lib.mkMerge [
dns.records = let
oldStaticAddr = [ depot.hours.VEGAS.interfaces.primary.addrPublic ];
in lib.mkMerge [
(lib.genAttrs [ "www" "draw" "stop-using-nix-env" "whoami" ] (lib.const {
consulService = "static-lb";
}))
@ -61,6 +63,16 @@ in
type = "CNAME";
target = [ "www.${domain}." ];
};
autoconfig.target = oldStaticAddr;
ktp.target = oldStaticAddr;
legacy.target = oldStaticAddr;
# jokes
"bone-ds-dc.com-ldap".target = oldStaticAddr;
rzentrale.target = oldStaticAddr;
wunschnachricht.target = oldStaticAddr;
}
];
}