1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

fix: cache's 404

This commit is contained in:
TheGeneralist 2025-07-01 17:02:51 +02:00
parent 56cc86052f
commit b2ee468733
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

View file

@ -17,11 +17,12 @@ in {
services.nginx.virtualHosts.${domain} = ssl // { services.nginx.virtualHosts.${domain} = ssl // {
locations."/".proxyPass = "http://127.0.0.1:1337"; 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 */ '' extraConfig = /* nginx */ ''
proxy_intercept_errors on; proxy_intercept_errors on;
error_page 404 = thegeneralist01.com/404.html; error_page 404 = @404;
''; '';
}; };
} }