From b2ee468733a65ef5947116de376089c19887ea6e Mon Sep 17 00:00:00 2001 From: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> Date: Tue, 1 Jul 2025 17:02:51 +0200 Subject: [PATCH] fix: cache's 404 --- hosts/thegeneralist-central/cache/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hosts/thegeneralist-central/cache/default.nix b/hosts/thegeneralist-central/cache/default.nix index b65f9b5..2ae8963 100644 --- a/hosts/thegeneralist-central/cache/default.nix +++ b/hosts/thegeneralist-central/cache/default.nix @@ -17,11 +17,12 @@ in { services.nginx.virtualHosts.${domain} = ssl // { locations."/".proxyPass = "http://127.0.0.1:1337"; - locations."= /".return = "301 https://thegeneralist01.com/404"; + locations."= /".return = "301 @404"; + locations."@404".return = "404 https://thegeneralist01.com/404"; extraConfig = /* nginx */ '' proxy_intercept_errors on; - error_page 404 = thegeneralist01.com/404.html; + error_page 404 = @404; ''; }; }