summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-11-18 22:43:36 +0100
committerChristian Grothoff <christian@grothoff.org>2016-11-18 22:43:36 +0100
commitc3e23e13dd725bc47a74734039da3a8b024d293f (patch)
tree2e542781ac2958fd4a8bebbc5f91970eb7c75909 /etc
parent23b0a31471ec58813ab6584e01015c25b878d748 (diff)
downloaddeployment-c3e23e13dd725bc47a74734039da3a8b024d293f.tar.gz
deployment-c3e23e13dd725bc47a74734039da3a8b024d293f.tar.bz2
deployment-c3e23e13dd725bc47a74734039da3a8b024d293f.zip
enable gzip
Diffstat (limited to 'etc')
-rw-r--r--etc/nginx/sites-enabled/www-ssl.site12
1 files changed, 11 insertions, 1 deletions
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;
}