Skip to content

Instantly share code, notes, and snippets.

@rkjha
Last active June 22, 2018 06:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkjha/9906994 to your computer and use it in GitHub Desktop.
Save rkjha/9906994 to your computer and use it in GitHub Desktop.
Enable gzip compression in nginx
## Enable gzip ##
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_min_length 5120;
gzip_proxied any;
gzip_comp_level 4;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment