cluster/services/websites: add dns records for old sites
This commit is contained in:
parent
0a6755dac5
commit
bde04dac87
1 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue