From 365f521c9312df8911cff77d00110e66b0594bbc Mon Sep 17 00:00:00 2001 From: Ernesto Serrano Date: Wed, 22 Apr 2020 08:51:52 +0200 Subject: [PATCH] Enable gzip compression on nginx Enable the gzip compression on nginx to improve performance --- config/nginx.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/nginx.conf b/config/nginx.conf index 10a5c7c..d347bab 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -82,7 +82,13 @@ http { fastcgi_pass 127.0.0.1:9000; } } - + + gzip on; + gzip_proxied any; + gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript text/javascript application/json application/xml+rss; + gzip_vary on; + gzip_disable "msie6"; + # Include other server configs include /etc/nginx/conf.d/*.conf; }