feat(redirections): simplify retired services management
All checks were successful
All checks were successful
This commit is contained in:
parent
ade1358caa
commit
df033fb84d
1 changed files with 8 additions and 3 deletions
|
@ -10,6 +10,8 @@ let
|
||||||
}) hosts);
|
}) hosts);
|
||||||
|
|
||||||
mkSub = domain: builtins.map (s: "${s}.${domain}");
|
mkSub = domain: builtins.map (s: "${s}.${domain}");
|
||||||
|
mkSubs = attrs:
|
||||||
|
builtins.concatLists (builtins.attrValues (builtins.mapAttrs mkSub attrs));
|
||||||
|
|
||||||
redirections = {
|
redirections = {
|
||||||
"nuage.beta.rz.ens.wtf".to = "cloud.dgnum.eu";
|
"nuage.beta.rz.ens.wtf".to = "cloud.dgnum.eu";
|
||||||
|
@ -19,8 +21,10 @@ let
|
||||||
"git.rz.ens.wtf".to = "git.dgnum.eu";
|
"git.rz.ens.wtf".to = "git.dgnum.eu";
|
||||||
} // (mkRetired retired);
|
} // (mkRetired retired);
|
||||||
|
|
||||||
retired = (mkSub "ens.fr" [ "alevins" "www.climatenavigator" ])
|
retired = mkSubs {
|
||||||
++ (mkSub "rz.ens.wtf" [ "s3" "cdn" ]) ++ (mkSub "beta.rz.ens.wtf" [
|
"ens.fr" = [ "alevins" "www.climatenavigator" ];
|
||||||
|
"rz.ens.wtf" = [ "s3" "cdn" ];
|
||||||
|
"beta.rz.ens.wtf" = [
|
||||||
"todo"
|
"todo"
|
||||||
"minecraft"
|
"minecraft"
|
||||||
"factorio"
|
"factorio"
|
||||||
|
@ -31,7 +35,8 @@ let
|
||||||
"sandbox.pads"
|
"sandbox.pads"
|
||||||
"jurisprudens"
|
"jurisprudens"
|
||||||
"rstudio"
|
"rstudio"
|
||||||
]);
|
];
|
||||||
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
services.nginx.virtualHosts = {
|
services.nginx.virtualHosts = {
|
||||||
|
|
Loading…
Reference in a new issue