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" = {
|
"skynet.ie" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "skynet";
|
useACMEHost = "skynet";
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
root = "${inputs.skynet_website.defaultPackage."x86_64-linux"}";
|
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
|
||||||
"2016.skynet.ie" = {
|
"2016.skynet.ie" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
Loading…
Reference in a new issue