feat: add custom 404 page and update nginx error handling

This commit is contained in:
2026-02-25 11:46:37 +01:00
parent 9bee255647
commit 0732c9c5e2
2 changed files with 89 additions and 0 deletions

View File

@@ -30,6 +30,11 @@ http {
root /usr/share/nginx/html;
index index.html;
error_page 404 /404.html;
location = /404.html {
internal;
}
# Security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;