]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
enable gzip compression for css, js. hide nginx version
authorIlya Shipitsin <chipitsine@gmail.com>
Sun, 29 Oct 2017 11:03:55 +0000 (16:03 +0500)
committerStephen Finucane <stephenfinucane@hotmail.com>
Wed, 1 Nov 2017 17:51:51 +0000 (17:51 +0000)
lib/nginx/patchwork.conf

index 893589bdcca06f51e1276003b077d8de62f4dfc6..69a7ab5ed7708ed971acc3b623b71b07b488c22d 100644 (file)
@@ -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 {