Skip to content

Instantly share code, notes, and snippets.

@kunokdev
Created December 13, 2018 23:36
Show Gist options
  • Save kunokdev/4ae1648f01e16e3e6a56c3256b211522 to your computer and use it in GitHub Desktop.
Save kunokdev/4ae1648f01e16e3e6a56c3256b211522 to your computer and use it in GitHub Desktop.
Minimal gzip.conf for Nginx
gzip on;
gzip_http_version 1.0;
gzip_comp_level 5; # 1-9
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;
# MIME-types
gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment