diff options
author | Ilya Shipitsin <chipitsine@gmail.com> | 2017-10-29 16:03:55 +0500 |
---|---|---|
committer | Stephen Finucane <stephenfinucane@hotmail.com> | 2017-11-01 17:51:51 +0000 |
commit | cb6a184be457db75f89ebd895bcac398f01d50bd (patch) | |
tree | 13d205375dab34b77137055a1406e5c1d77d9a3b /lib | |
parent | bf5c1a3b63c0bf25abb7cd1013f8383e9d3b502b (diff) | |
download | patchwork-cb6a184be457db75f89ebd895bcac398f01d50bd.tar patchwork-cb6a184be457db75f89ebd895bcac398f01d50bd.tar.gz |
enable gzip compression for css, js. hide nginx version
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nginx/patchwork.conf | 7 |
1 files changed, 7 insertions, 0 deletions
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 { |