diff --git a/roles/nginx/files/nginx.conf b/roles/nginx/files/nginx.conf index f7aea83..2e3b93d 100644 --- a/roles/nginx/files/nginx.conf +++ b/roles/nginx/files/nginx.conf @@ -61,7 +61,33 @@ http { gzip_min_length 860; gzip_disable "msie6"; gzip_http_version 1.1; - gzip_types text/plain text/css text/xml application/rss+xml application/javascript image/svg+xml; + # Compress all output labeled with one of the following MIME-types. + 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; + # text/html is always compressed by gzip module client_max_body_size 12m;