Browse Source

nixbld: redirect old URLs

master
Sebastien Bourdeauducq 8 months ago
parent
commit
4d9e1f6e36
1 changed files with 14 additions and 2 deletions
  1. 14
    2
      nixbld-etc-nixos/configuration.nix

+ 14
- 2
nixbld-etc-nixos/configuration.nix View File

@@ -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" = {

Loading…
Cancel
Save