Skip to content

Instantly share code, notes, and snippets.

@huang-xiao-jian
Created December 14, 2017 03:24
Show Gist options
  • Save huang-xiao-jian/c6a0901198afabfeb655a65117a5d099 to your computer and use it in GitHub Desktop.
Save huang-xiao-jian/c6a0901198afabfeb655a65117a5d099 to your computer and use it in GitHub Desktop.
nginx gzip configuration
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 5;
gzip_proxied any;
gzip_types text/plain text/css application/javascript application/x-javascript application/xml;
gzip_vary on;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment