From 4d0c0e295a24d4fa3cb5a867a9ad0d1a23f0ab1f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 26 Jul 2019 21:29:54 +0800 Subject: [PATCH] nixbld: use custom 404 page --- nixbld-etc-nixos/configuration.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index e6d0dce..65a4a83 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -257,6 +257,9 @@ ACTION=="add", SUBSYSTEM=="tty", \ addSSL = true; useACMEHost = "nixbld.m-labs.hk"; root = "${hydraWwwOutputs}/web"; + extraConfig = '' + error_page 404 /404.html; + ''; locations."/MathJax" = { alias = "/var/www/MathJax"; };