serve website from hydra

This commit is contained in:
Sebastien Bourdeauducq 2019-07-19 15:57:35 +08:00
parent 5326cab419
commit 78caeebf02

View File

@ -255,7 +255,10 @@ ACTION=="add", SUBSYSTEM=="tty", \
mainWebsite = { mainWebsite = {
addSSL = true; addSSL = true;
useACMEHost = "nixbld.m-labs.hk"; useACMEHost = "nixbld.m-labs.hk";
root = "/var/www/m-labs.hk"; root = "${hydraWwwOutputs}/web";
locations."/MathJax" = {
alias = "/var/www/MathJax";
};
locations."/gateware.html".extraConfig = '' locations."/gateware.html".extraConfig = ''
return 301 /gateware/migen/; return 301 /gateware/migen/;
''; '';