Skip to content

Instantly share code, notes, and snippets.

@kgriffs
Created November 28, 2012 13:21
Show Gist options
  • Save kgriffs/4161239 to your computer and use it in GitHub Desktop.
Save kgriffs/4161239 to your computer and use it in GitHub Desktop.
nginx gzip
# See also: http://arstechnica.com/gadgets/2012/11/how-to-set-up-a-safe-and-secure-web-server/3/
gzip on;
gzip_disable "msie6";
gzip_min_length 1100;
gzip_vary on;
gzip_proxied any;
gzip_buffers 16 8k;
gzip_types text/plain text/css application/json application/x-javascript
text/xml application/xml application/rss+xml text/javascript
image/svg+xml application/x-font-ttf font/opentype
application/vnd.ms-fontobject;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment