nixbld: use custom 404 page

This commit is contained in:
Sebastien Bourdeauducq 2019-07-26 21:29:54 +08:00
parent 789336adca
commit 4d0c0e295a
1 changed files with 3 additions and 0 deletions

View File

@ -257,6 +257,9 @@ ACTION=="add", SUBSYSTEM=="tty", \
addSSL = true; addSSL = true;
useACMEHost = "nixbld.m-labs.hk"; useACMEHost = "nixbld.m-labs.hk";
root = "${hydraWwwOutputs}/web"; root = "${hydraWwwOutputs}/web";
extraConfig = ''
error_page 404 /404.html;
'';
locations."/MathJax" = { locations."/MathJax" = {
alias = "/var/www/MathJax"; alias = "/var/www/MathJax";
}; };