feat: add error pages to nginx on bekkalokk

This commit is contained in:
Adrian G L
2025-10-02 22:03:44 +02:00
parent 3faad36418
commit 914458d4b0
3 changed files with 118 additions and 1 deletions

View File

@@ -122,5 +122,17 @@ in {
"/diverse/abuse.php".return = "301 https://wiki.pvv.ntnu.no/wiki/CERT/Abuse";
"/nerds/".return = "301 https://wiki.pvv.ntnu.no/wiki/Nerdepizza";
};
extraConfig = ''
error_page 500 502 503 504 /500.html;
'';
locations."/500.html" = {
root = "/etc/static/nginx/html";
extraConfig = ''
internal;
'';
};
};
}