feat: added a redirect for the old skynet format of user addresses
This commit is contained in:
parent
54606be0df
commit
48e48c43c7
1 changed files with 11 additions and 1 deletions
|
@ -72,9 +72,19 @@ in {
|
|||
"skynet.ie" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "skynet";
|
||||
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
|
||||
"2016.skynet.ie" = {
|
||||
forceSSL = true;
|
||||
|
|
Loading…
Reference in a new issue