Enable gzip compression on nginx

Enable the gzip compression on nginx to improve performance
This commit is contained in:
Ernesto Serrano 2020-04-22 08:51:52 +02:00 committed by GitHub
parent 772d7aeaad
commit 365f521c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,6 +83,12 @@ http {
}
}
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;
}