Skip to content

Instantly share code, notes, and snippets.

@vladyslav2
Created May 9, 2016 19:22
Show Gist options
  • Save vladyslav2/d3bb353bd947d86593344b61462ec3f4 to your computer and use it in GitHub Desktop.
Save vladyslav2/d3bb353bd947d86593344b61462ec3f4 to your computer and use it in GitHub Desktop.
nginx gzip configuration
http {
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 8;
gzip_proxied any;
gzip_min_length 1000;
gzip_types
# text/html is always compressed by HttpGzipModule
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/json
application/xml
application/rss+xml
font/truetype
font/opentype
application/vnd.ms-fontobject
image/svg+xml;
gzip_buffers 16 8k;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment