Created
December 13, 2018 23:36
-
-
Save kunokdev/4ae1648f01e16e3e6a56c3256b211522 to your computer and use it in GitHub Desktop.
Minimal gzip.conf for Nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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