Skip to content

Commit

Permalink
Enable gzip compression on nginx
Browse files Browse the repository at this point in the history
Enable the gzip compression on nginx to improve performance
  • Loading branch information
erseco authored Apr 22, 2020
1 parent 772d7ae commit 365f521
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 365f521

Please sign in to comment.