feat: add custom nginx 404 page

This commit is contained in:
nyan404 committed 2026-08-25 13:39:28 +03:00
1 parent cf4d9fdd68
commit c838cb8410
4 files changed
+39

No files matched your search

+10
View File
@@ -52,6 +52,7 @@ http {
# legacy CatWar static site at /, but forward calculator pages and
# their root-relative API calls to the Belki MetalLB service.
location = /belki {
proxy_intercept_errors on;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -60,6 +61,7 @@ http {
}
location = /belki/ {
proxy_intercept_errors on;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -68,6 +70,7 @@ http {
}
location = /admin {
proxy_intercept_errors on;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -76,6 +79,7 @@ http {
}
location = /applications {
proxy_intercept_errors on;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -84,6 +88,7 @@ http {
}
location = /applications/ {
proxy_intercept_errors on;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -114,6 +119,11 @@ http {
charset utf-8;
}
error_page 404 /404.html;
location = /404.html {
internal;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;