From 9e10bfc74f3f2518250d96ba110ff64a02af9cc8 Mon Sep 17 00:00:00 2001 From: Nicholas Orlowsky Date: Thu, 3 Feb 2022 17:22:33 -0600 Subject: [PATCH] enable gzip --- nginx/nginx.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 6939756..7fcae68 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,4 +1,26 @@ server { + gzip on; + gzip_types + application/atom+xml + application/geo+json + application/javascript + application/x-javascript + application/json + application/ld+json + application/manifest+json + application/rdf+xml + application/rss+xml + application/xhtml+xml + application/xml + font/eot + font/otf + font/ttf + image/svg+xml + text/css + text/javascript + text/plain + text/xml; + gzip_min_length 256; listen 80; location / { root /usr/share/nginx/html;