From 2e6cfc710745eafa81e178d4e2442424f3379482 Mon Sep 17 00:00:00 2001 From: Max Schmidt Date: Tue, 24 Oct 2023 10:28:06 +0200 Subject: [PATCH] Remove unnecessary mime types and 404 page --- astro/nginx.conf | 2 -- astro/src/pages/404.astro | 8 -------- 2 files changed, 10 deletions(-) delete mode 100644 astro/src/pages/404.astro diff --git a/astro/nginx.conf b/astro/nginx.conf index 4447da3..cfe47a1 100644 --- a/astro/nginx.conf +++ b/astro/nginx.conf @@ -18,7 +18,6 @@ http { location / { root /usr/share/nginx/html; - include mime.types; try_files $uri $uri/ =404; } @@ -28,7 +27,6 @@ http { location ~* \.(jpg|jpeg|png|gif|ico|css|js|htm|html)$ { root /usr/share/nginx/html; - include mime.types; expires 30d; add_header Pragma public; add_header Cache-Control "public"; diff --git a/astro/src/pages/404.astro b/astro/src/pages/404.astro deleted file mode 100644 index 728d28e..0000000 --- a/astro/src/pages/404.astro +++ /dev/null @@ -1,8 +0,0 @@ ---- -import Layout from "@/layouts/Layout.astro"; - ---- - - -

Ooops! Site not found.

-
\ No newline at end of file