added gzip configuration

This commit is contained in:
Asif Bacchus 2019-01-04 01:58:30 -07:00
parent 96362f704c
commit 8aed718cfa

18
conf.d/gzip.conf Normal file
View File

@ -0,0 +1,18 @@
#######
### NGINX configuration - gzip
#######
gzip on;
gzip_vary on;
gzip_comp_level 4;
gzip_min_length 256;
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
gzip_types application/atom+xml application/javascript application/json
application/ld+json application/manifest+json application/rss+xml
application/vnd.geo+json application/vnd.ms-fontobject
application/x-font-ttf application/x-web-app-manifest+json
application/xhtml+xml application/xml font/opentype image/bmp
image/svg+xml image/x-icon text/cache-manifest text/css text/plain
text/vcard text/vnd.rim.location.xloc text/vtt text/x-component
text/x-cross-domain-policy;
gzip_disable "MSIE [1-6]\.";