From cb6a184be457db75f89ebd895bcac398f01d50bd Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 29 Oct 2017 16:03:55 +0500 Subject: enable gzip compression for css, js. hide nginx version --- lib/nginx/patchwork.conf | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') diff --git a/lib/nginx/patchwork.conf b/lib/nginx/patchwork.conf index 893589b..69a7ab5 100644 --- a/lib/nginx/patchwork.conf +++ b/lib/nginx/patchwork.conf @@ -2,6 +2,13 @@ server { listen 80 default_server; listen [::]:80 default_server; + server_tokens off; + + gzip on; + gzip_types text/css application/javascript; + gzip_min_length 500; + gzip_disable msie6; + location = favicon.ico { access_log off; log_not_found off; } location /static { -- cgit v1.2.3