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,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
|
||||||
|
|
Loading…
Reference in a new issue