From 4d9e1f6e36a448230c033b0d7240871d9ff24e5d Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 18 Jul 2019 23:25:35 +0800 Subject: [PATCH] nixbld: redirect old URLs --- nixbld-etc-nixos/configuration.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index c732322..e2ea9e8 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -253,7 +253,13 @@ ACTION=="add", SUBSYSTEM=="tty", \ useACMEHost = "nixbld.m-labs.hk"; root = "/var/www/m-labs.hk"; locations."/gateware.html".extraConfig = '' - return 301 /migen/; + return 301 /gateware/migen/; + ''; + locations."/migen".extraConfig = '' + return 301 /gateware/migen/; + ''; + locations."/artiq".extraConfig = '' + return 301 /experiment-control/artiq/; ''; locations."/artiq/manual-beta" = { alias = "${hydraWwwOutputs}/artiq-manual-html-beta/share/doc/artiq-manual/html"; @@ -287,7 +293,13 @@ ACTION=="add", SUBSYSTEM=="tty", \ useACMEHost = "nixbld.m-labs.hk"; root = "/var/www/m-labs.hk"; locations."/gateware.html".extraConfig = '' - return 301 /migen/; + return 301 /gateware/migen/; + ''; + locations."/migen".extraConfig = '' + return 301 /gateware/migen/; + ''; + locations."/artiq".extraConfig = '' + return 301 /experiment-control/artiq/; ''; }; "lab.m-labs.hk" = {