From dac9c2fb3c9f2e044ec1e1b308facc3d7f867d8c Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 28 Aug 2022 20:18:12 +0200 Subject: [PATCH] VEGAS/websites: add back custom Soda error pages --- hosts/VEGAS/services/websites/websites.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hosts/VEGAS/services/websites/websites.nix b/hosts/VEGAS/services/websites/websites.nix index e4eda3c..64cba3a 100644 --- a/hosts/VEGAS/services/websites/websites.nix +++ b/hosts/VEGAS/services/websites/websites.nix @@ -1,11 +1,15 @@ { packages, tools }: with tools.vhosts; -let inherit (tools) domain; in { # websites ktp = static "/srv/storage/www/soda/ktp"; legacy = static "/srv/storage/www/legacy"; - soda = static "/srv/storage/www/soda"; # TODO: add back custom error pages, wttr.in cache + soda = static "/srv/storage/www/soda" // { + extraConfig = '' + error_page 404 /.nginx-private/404.html; + error_page 500 502 503 504 /.nginx-private/50x.html; + ''; + }; # content delivery autoconfig = static "/srv/storage/www/autoconfig";