diff --git a/default.conf b/default.conf index c1e92282..f65a7e68 100644 --- a/default.conf +++ b/default.conf @@ -50,4 +50,31 @@ server { #location ~ /\.ht { # deny all; #} + + gzip on; + gzip_vary on; + gzip_proxied any; + gzip_comp_level 6; + gzip_buffers 16 8k; + gzip_http_version 1.1; + gzip_types + application/atom+xml + application/geo+json + application/javascript + application/x-javascript + application/json + application/ld+json + application/manifest+json + application/rdf+xml + application/rss+xml + application/xhtml+xml + application/xml + font/eot + font/otf + font/ttf + image/svg+xml + text/css + text/javascript + text/plain + text/xml; }