fix: move to a better naming scheme for previous versions of teh skynet sites
This commit is contained in:
parent
69bd2be07c
commit
fee1e34ca8
3 changed files with 56 additions and 44 deletions
|
@ -21,7 +21,8 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
services.skynet.acme.domains = [
|
||||
# the root one is already covered by teh certificate
|
||||
"2016.skynet.ie"
|
||||
"2017.skynet.ie"
|
||||
"2009.skynet.ie"
|
||||
"discord.skynet.ie"
|
||||
"public.skynet.ie"
|
||||
"renew.skynet.ie"
|
||||
|
@ -35,7 +36,12 @@ in {
|
|||
value = config.services.skynet.host.ip;
|
||||
}
|
||||
{
|
||||
record = "2016";
|
||||
record = "2017";
|
||||
r_type = "CNAME";
|
||||
value = config.services.skynet.host.name;
|
||||
}
|
||||
{
|
||||
record = "2009";
|
||||
r_type = "CNAME";
|
||||
value = config.services.skynet.host.name;
|
||||
}
|
||||
|
@ -63,9 +69,8 @@ in {
|
|||
forceSSL = true;
|
||||
useACMEHost = "skynet";
|
||||
locations = {
|
||||
"/" = {
|
||||
root = "${inputs.skynet_website.defaultPackage."x86_64-linux"}";
|
||||
};
|
||||
# this alwas points to teh current version of teh site
|
||||
"/".root = "${inputs.skynet_website_2017.defaultPackage."x86_64-linux"}";
|
||||
|
||||
# this redirects old links to new format
|
||||
"~* ~(?<username>[a-z_0-9]*)(?<files>\\S*)$" = {
|
||||
|
@ -75,11 +80,18 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
# archive of teh site as it was ~2012 to 2016
|
||||
"2016.skynet.ie" = {
|
||||
# 2017 to now
|
||||
"2017.skynet.ie" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "skynet";
|
||||
root = "${inputs.skynet_website_2016.defaultPackage."x86_64-linux"}";
|
||||
root = "${inputs.skynet_website_2017.defaultPackage."x86_64-linux"}";
|
||||
};
|
||||
|
||||
# archive of teh site as it was ~2009 to 2017
|
||||
"2009.skynet.ie" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "skynet";
|
||||
root = "${inputs.skynet_website_2009.defaultPackage."x86_64-linux"}";
|
||||
};
|
||||
|
||||
# a custom discord url, because we are too cheap otehrwise
|
||||
|
|
64
flake.lock
64
flake.lock
|
@ -620,11 +620,11 @@
|
|||
},
|
||||
"nixpkgs_14": {
|
||||
"locked": {
|
||||
"lastModified": 1689935543,
|
||||
"narHash": "sha256-6GQ9ib4dA/r1leC5VUpsBo0BmDvNxLjKrX1iyL+h8mc=",
|
||||
"lastModified": 1690026219,
|
||||
"narHash": "sha256-oOduRk/kzQxOBknZXTLSEYd7tk+GoKvr8wV6Ab+t4AU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e43e2448161c0a2c4928abec4e16eae1516571bc",
|
||||
"rev": "f465da166263bc0d4b39dfd4ca28b777c92d4b73",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -634,11 +634,11 @@
|
|||
},
|
||||
"nixpkgs_15": {
|
||||
"locked": {
|
||||
"lastModified": 1690026219,
|
||||
"narHash": "sha256-oOduRk/kzQxOBknZXTLSEYd7tk+GoKvr8wV6Ab+t4AU=",
|
||||
"lastModified": 1689935543,
|
||||
"narHash": "sha256-6GQ9ib4dA/r1leC5VUpsBo0BmDvNxLjKrX1iyL+h8mc=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "f465da166263bc0d4b39dfd4ca28b777c92d4b73",
|
||||
"rev": "e43e2448161c0a2c4928abec4e16eae1516571bc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -807,8 +807,8 @@
|
|||
"skynet_discord_bot": "skynet_discord_bot",
|
||||
"skynet_ldap_backend": "skynet_ldap_backend",
|
||||
"skynet_ldap_frontend": "skynet_ldap_frontend",
|
||||
"skynet_website": "skynet_website",
|
||||
"skynet_website_2016": "skynet_website_2016",
|
||||
"skynet_website_2009": "skynet_website_2009",
|
||||
"skynet_website_2017": "skynet_website_2017",
|
||||
"skynet_website_games": "skynet_website_games",
|
||||
"skynet_website_renew": "skynet_website_renew"
|
||||
}
|
||||
|
@ -922,45 +922,45 @@
|
|||
"type": "gitlab"
|
||||
}
|
||||
},
|
||||
"skynet_website": {
|
||||
"skynet_website_2009": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_14",
|
||||
"utils": "utils_7"
|
||||
},
|
||||
"locked": {
|
||||
"host": "gitlab.skynet.ie",
|
||||
"lastModified": 1707154174,
|
||||
"narHash": "sha256-oUOD6aIy8KvIsiAWxLApPgAkigDZwp3xZ8bmhKoWszY=",
|
||||
"owner": "compsoc1%2Fskynet",
|
||||
"repo": "website%2F2023",
|
||||
"rev": "c81db388fac570a8cb646391ea461b9e60282043",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
"host": "gitlab.skynet.ie",
|
||||
"owner": "compsoc1%2Fskynet",
|
||||
"repo": "website%2F2023",
|
||||
"type": "gitlab"
|
||||
}
|
||||
},
|
||||
"skynet_website_2016": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_15",
|
||||
"utils": "utils_8"
|
||||
},
|
||||
"locked": {
|
||||
"host": "gitlab.skynet.ie",
|
||||
"lastModified": 1690726067,
|
||||
"narHash": "sha256-/BrljRmgR65bdqWgGBBWlTFiBzr0EBh1OeMlLj+xTg4=",
|
||||
"owner": "compsoc1%2Fskynet",
|
||||
"repo": "website%2F2016",
|
||||
"repo": "website%2F2009",
|
||||
"rev": "63e0b33c5a48cbd4e68f23dde4987959b6c8e97e",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
"host": "gitlab.skynet.ie",
|
||||
"owner": "compsoc1%2Fskynet",
|
||||
"repo": "website%2F2016",
|
||||
"repo": "website%2F2009",
|
||||
"type": "gitlab"
|
||||
}
|
||||
},
|
||||
"skynet_website_2017": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_15",
|
||||
"utils": "utils_8"
|
||||
},
|
||||
"locked": {
|
||||
"host": "gitlab.skynet.ie",
|
||||
"lastModified": 1707154174,
|
||||
"narHash": "sha256-oUOD6aIy8KvIsiAWxLApPgAkigDZwp3xZ8bmhKoWszY=",
|
||||
"owner": "compsoc1%2Fskynet",
|
||||
"repo": "website%2F2017",
|
||||
"rev": "c81db388fac570a8cb646391ea461b9e60282043",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
"host": "gitlab.skynet.ie",
|
||||
"owner": "compsoc1%2Fskynet",
|
||||
"repo": "website%2F2017",
|
||||
"type": "gitlab"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -41,17 +41,17 @@
|
|||
owner = "compsoc1%2Fskynet";
|
||||
repo = "ldap%2Ffrontend";
|
||||
};
|
||||
skynet_website = {
|
||||
skynet_website_2017 = {
|
||||
type = "gitlab";
|
||||
host = "gitlab.skynet.ie";
|
||||
owner = "compsoc1%2Fskynet";
|
||||
repo = "website%2F2023";
|
||||
repo = "website%2F2017";
|
||||
};
|
||||
skynet_website_2016 = {
|
||||
skynet_website_2009 = {
|
||||
type = "gitlab";
|
||||
host = "gitlab.skynet.ie";
|
||||
owner = "compsoc1%2Fskynet";
|
||||
repo = "website%2F2016";
|
||||
repo = "website%2F2009";
|
||||
};
|
||||
skynet_website_renew = {
|
||||
type = "gitlab";
|
||||
|
|
Loading…
Reference in a new issue