From a0be7854700b87e0b48b5551a602a2e4d75bcb49 Mon Sep 17 00:00:00 2001 From: mo8it Date: Wed, 22 Nov 2023 02:22:05 +0100 Subject: [PATCH] Configure GZIP compression in Nginx --- volumes/nginx.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/volumes/nginx.conf b/volumes/nginx.conf index 3d574f6..1507693 100644 --- a/volumes/nginx.conf +++ b/volumes/nginx.conf @@ -18,6 +18,19 @@ http { tcp_nodelay on; gzip on; + gzip_comp_level 6; + gzip_min_length 256; + gzip_proxied any; + gzip_types + application/atom+xml + application/javascript + application/json + application/rss+xml + image/svg+xml + text/css + text/html + text/plain + text/xml; server_tokens off;