infrastructure/machines/web01/redirections.nix
sinavir 53379c88de
All checks were successful
Check meta / check_meta (push) Successful in 17s
Check meta / check_dns (push) Successful in 19s
build configuration / build_storage01 (push) Successful in 1m12s
build configuration / build_vault01 (push) Successful in 1m13s
build configuration / build_compute01 (push) Successful in 1m17s
build configuration / build_web02 (push) Successful in 1m18s
lint / check (push) Successful in 23s
build configuration / build_web01 (push) Successful in 1m55s
build configuration / build_geo01 (push) Successful in 1m9s
build configuration / build_geo02 (push) Successful in 1m10s
build configuration / build_rescue01 (push) Successful in 1m12s
build configuration / build_bridge01 (push) Successful in 1m6s
build configuration / push_to_cache_storage01 (push) Successful in 1m23s
build configuration / push_to_cache_geo01 (push) Successful in 1m19s
build configuration / push_to_cache_web02 (push) Successful in 1m39s
build configuration / push_to_cache_compute01 (push) Successful in 1m55s
build configuration / push_to_cache_geo02 (push) Successful in 1m12s
build configuration / push_to_cache_bridge01 (push) Successful in 1m16s
build configuration / push_to_cache_rescue01 (push) Successful in 1m38s
build configuration / push_to_cache_vault01 (push) Successful in 1m39s
build configuration / push_to_cache_web01 (push) Successful in 1m59s
feat(pub.dgnum.eu): Add a redirect toward instagram
2024-09-30 20:17:20 +02:00

68 lines
1.5 KiB
Nix

_:
let
retiredHost = "retired.dgnum.eu";
mkSubs =
attrs:
builtins.concatLists (
builtins.attrValues (builtins.mapAttrs (domain: builtins.map (s: "${s}.${domain}")) attrs)
);
in
{
dgn-redirections = {
inherit retiredHost;
permanent = {
"calendrier.eleves.ens.fr" = "calendrier.dgnum.eu";
"docs.beta.rz.ens.wtf" = "pads.dgnum.eu";
"git.rz.ens.wtf" = "git.dgnum.eu";
"notion.rz.ens.wtf" = "docs.dgnum.eu";
"nuage.beta.rz.ens.wtf" = "cloud.dgnum.eu";
"rdv.dgnum.eu" = "meet.dgnum.eu";
"www.bda.ens.fr" = "bda.ens.fr";
"bda.wp.dgnum.eu" = "bda.ens.fr";
"www.cineclub.ens.fr" = "cineclub.ens.fr";
"cineclub.wp.dgnum.eu" = "cineclub.ens.fr";
"www.bds.ens.fr" = "bds.ens.fr";
"bds.wp.dgnum.eu" = "bds.ens.fr";
"www.tuteurs.ens.fr" = "tuteurs.ens.fr";
"www.interq.ens.fr" = "interq.ens.fr";
"www.lanuit.ens.fr" = "lanuit.ens.fr";
};
temporary = {
"pub.dgnum.eu".to = "https://www.instagram.com/dgnum_eu/";
};
retired = mkSubs {
"ens.fr" = [
"alevins"
"www.climatenavigator"
];
"ens.wtf" = [ "photos" ];
"rz.ens.wtf" = [
"s3"
"cdn"
];
"beta.rz.ens.wtf" = [
"todo"
"minecraft"
"factorio"
"home"
"pads"
"api.pads"
"files.pads"
"sandbox.pads"
"jurisprudens"
"rstudio"
];
};
};
services.nginx.virtualHosts.${retiredHost}.default = true;
}