From: Ilya Shipitsin Date: Sun, 29 Oct 2017 11:03:55 +0000 (+0500) Subject: enable gzip compression for css, js. hide nginx version X-Git-Tag: v2.1.0-rc1~112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb6a184be457db75f89ebd895bcac398f01d50bd;p=thirdparty%2Fpatchwork.git enable gzip compression for css, js. hide nginx version --- diff --git a/lib/nginx/patchwork.conf b/lib/nginx/patchwork.conf index 893589bd..69a7ab5e 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 {