From a205542c0409ec662bd27b61f0631e74f18db7c8 Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Wed, 27 Jun 2018 04:54:38 +0000 Subject: [PATCH] add gzip --- nginx.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nginx.conf b/nginx.conf index 0c7d51d5..e1a34db2 100644 --- a/nginx.conf +++ b/nginx.conf @@ -4,6 +4,17 @@ server { server_tokens off; charset utf-8; + gzip on; + gzip_disable "msie6"; + + gzip_vary on; + gzip_proxied any; + gzip_comp_level 6; + gzip_buffers 16 8k; + gzip_http_version 1.1; + gzip_min_length 256; + gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon; + location /healthz { return 200; }