feat: added a redirect for the old skynet format of user addresses

This commit is contained in:
silver 2024-04-20 04:55:07 +01:00
parent 54606be0df
commit 48e48c43c7

View file

@ -72,7 +72,17 @@ in {
"skynet.ie" = { "skynet.ie" = {
forceSSL = true; forceSSL = true;
useACMEHost = "skynet"; useACMEHost = "skynet";
root = "${inputs.skynet_website.defaultPackage."x86_64-linux"}"; locations = {
"/" = {
root = "${inputs.skynet_website.defaultPackage."x86_64-linux"}";
};
# this redirects old links to new format
"~* ~(?<username>[a-z_0-9]*)(?<files>\\S+)$" = {
priority = 1;
return = "307 https://$username.users.skynet.ie$files";
};
};
}; };
# archive of teh site as it was ~2012 to 2016 # archive of teh site as it was ~2012 to 2016