From c3e23e13dd725bc47a74734039da3a8b024d293f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 18 Nov 2016 22:43:36 +0100 Subject: enable gzip --- etc/nginx/sites-enabled/www-ssl.site | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/etc/nginx/sites-enabled/www-ssl.site b/etc/nginx/sites-enabled/www-ssl.site index 1c5dda9..4d598a2 100644 --- a/etc/nginx/sites-enabled/www-ssl.site +++ b/etc/nginx/sites-enabled/www-ssl.site @@ -26,7 +26,17 @@ server { rewrite ^/wallet$ /wallet.html break; } - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { + 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_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; + + + location ~* \.(png|jpg|jpeg|gif|ico|svg|js|css)$ { root /var/www/taler.net; expires 1y; } -- cgit v1.2.3