From 8299d7276a173bba132549ae1635d721f3c828e4 Mon Sep 17 00:00:00 2001 From: WP Studio Date: Fri, 17 Jan 2025 14:29:01 +0300 Subject: [PATCH] + gzip config example for nginx --- config/nginx/conf.d/gzip.conf.example | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 config/nginx/conf.d/gzip.conf.example diff --git a/config/nginx/conf.d/gzip.conf.example b/config/nginx/conf.d/gzip.conf.example new file mode 100644 index 0000000..3770d44 --- /dev/null +++ b/config/nginx/conf.d/gzip.conf.example @@ -0,0 +1,30 @@ +gzip on; +gzip_disable "msie6"; +gzip_comp_level 5; +gzip_min_length 256; +gzip_proxied any; +gzip_vary on; +gzip_types + application/atom+xml + application/javascript + application/json + application/ld+json + application/manifest+json + application/rss+xml + application/vnd.geo+json + application/vnd.ms-fontobject + application/x-font-ttf + application/x-web-app-manifest+json + application/xhtml+xml + application/xml + font/opentype + image/bmp + image/svg+xml + image/x-icon + text/cache-manifest + text/css + text/plain + text/vnd.rim.location.xloc + text/vtt + text/x-component + text/x-cross-domain-policy;