From 7487560b107ba29ad9292ca4c7e77ca67d6ee78a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 21 Apr 2019 10:43:48 +0800 Subject: [PATCH] host website --- nixbld-etc-nixos/configuration.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 0d1e60a..0b3134a 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -162,6 +162,8 @@ ACTION=="add", SUBSYSTEM=="tty", \ "nixbld.m-labs.hk" = { webroot = "/var/lib/acme/acme-challenge"; extraDomains = { + "m-labs.hk" = null; + "www.m-labs.hk" = null; "buildbot.m-labs.hk" = null; "lab.m-labs.hk" = null; "git.m-labs.hk" = null; @@ -173,6 +175,16 @@ ACTION=="add", SUBSYSTEM=="tty", \ enable = true; recommendedProxySettings = true; virtualHosts = { + "m-labs.hk" = { + addSSL = true; + useACMEHost = "nixbld.m-labs.hk"; + root = "/var/www/m-labs.hk"; + }; + "www.m-labs.hk" = { + addSSL = true; + useACMEHost = "nixbld.m-labs.hk"; + root = "/var/www/m-labs.hk"; + }; "buildbot.m-labs.hk" = { addSSL = true; useACMEHost = "nixbld.m-labs.hk";