From 5544f0d6c092fe85f052d7a3ad7f503a29831d31 Mon Sep 17 00:00:00 2001 From: stitchy Date: Sun, 22 Dec 2024 02:50:33 -0800 Subject: [PATCH] fix(tanzanite): configure custom 404 page --- hosts/tanzanite/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/tanzanite/default.nix b/hosts/tanzanite/default.nix index 2ceaf38..2c4e44c 100644 --- a/hosts/tanzanite/default.nix +++ b/hosts/tanzanite/default.nix @@ -36,6 +36,12 @@ in { enableACME = true; forceSSL = true; root = "/opt/www/stitchy.moe/public"; + extraConfig = '' + error_page 404 /404.html; + location = /404.html { + internal; + } + ''; }; "gay.stitchy.moe" = { enableACME = true;