add initial custom 404 page

This commit is contained in:
Daniel Micay
2020-04-24 10:42:12 -04:00
parent 24caba2012
commit ddaf5ded8f
2 changed files with 60 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ server {
server_name grapheneos.org;
root /var/www/html;
error_page 404 /404.html;
charset utf-8;
include /etc/nginx/snippets/security-headers.conf;
@@ -65,6 +66,10 @@ server {
default_type text/plain;
}
location = /404.html {
internal;
}
location ~ "\.(ico|webmanifest)$" {
include /etc/nginx/snippets/security-headers.conf;
add_header Cache-Control "public, max-age=604800";