From 5400495176b1c4ab361cb3cb3e9f2edef9899559 Mon Sep 17 00:00:00 2001 From: Max Schmidt Date: Tue, 24 Oct 2023 10:22:01 +0200 Subject: [PATCH] Update nginx.conf with new gzip configuration and remove duplicate default_type and include directives --- astro/nginx.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/astro/nginx.conf b/astro/nginx.conf index 773afbd..c1f432d 100644 --- a/astro/nginx.conf +++ b/astro/nginx.conf @@ -3,6 +3,8 @@ events { } http { + include /etc/nginx/mime.types; + default_type application/octet-stream; gzip on; gzip_vary on; gzip_proxied any; @@ -10,8 +12,7 @@ http { gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; - default_type application/octet-stream; - include /etc/nginx/mime.types; + server { listen 80;