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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue