From 78caeebf0291bcd664fc25e13d20d48b53d353f8 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 19 Jul 2019 15:57:35 +0800 Subject: [PATCH] serve website from hydra --- nixbld-etc-nixos/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index ed2153c..16a07b5 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -255,7 +255,10 @@ ACTION=="add", SUBSYSTEM=="tty", \ mainWebsite = { addSSL = true; useACMEHost = "nixbld.m-labs.hk"; - root = "/var/www/m-labs.hk"; + root = "${hydraWwwOutputs}/web"; + locations."/MathJax" = { + alias = "/var/www/MathJax"; + }; locations."/gateware.html".extraConfig = '' return 301 /gateware/migen/; '';