From f260c33f9731122bfebe552394b1802f682097ff Mon Sep 17 00:00:00 2001 From: Max Schmidt Date: Tue, 24 Oct 2023 10:26:58 +0200 Subject: [PATCH] Fix include directive duplication in nginx.conf --- astro/nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/astro/nginx.conf b/astro/nginx.conf index 7499592..4447da3 100644 --- a/astro/nginx.conf +++ b/astro/nginx.conf @@ -3,7 +3,7 @@ events { } http { - include mime.types; + default_type application/octet-stream; gzip on; gzip_vary on; @@ -18,6 +18,7 @@ http { location / { root /usr/share/nginx/html; + include mime.types; try_files $uri $uri/ =404; } @@ -27,6 +28,7 @@ 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";