From 125654bcced479a3d91be5a5ef77e6b3dbc43b32 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 30 Jan 2020 11:31:21 +0800 Subject: [PATCH] redirect nmigen domain to github repos --- nixbld-etc-nixos/configuration.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index cd283e2..2799311 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -386,6 +386,8 @@ in "hooks.m-labs.hk" = null; "forum.m-labs.hk" = null; "perso.m-labs.hk" = null; + "nmigen.org" = null; + "www.nmigen.org" = null; "openhardware.hk" = null; "git.openhardware.hk" = null; @@ -542,6 +544,20 @@ in useACMEHost = "nixbld.m-labs.hk"; root = "/var/www/perso"; }; + "nmigen.org" = { + addSSL = true; + useACMEHost = "nixbld.m-labs.hk"; + locations."/".extraConfig = '' + return 301 https://github.com/m-labs/nmigen; + ''; + }; + "www.nmigen.org" = { + addSSL = true; + useACMEHost = "nixbld.m-labs.hk"; + locations."/".extraConfig = '' + return 301 https://github.com/m-labs/nmigen; + ''; + }; "git.openhardware.hk" = { forceSSL = true;