summaryrefslogtreecommitdiff
path: root/etc/nginx/sites-enabled/www-ssl.site
diff options
context:
space:
mode:
Diffstat (limited to 'etc/nginx/sites-enabled/www-ssl.site')
-rw-r--r--etc/nginx/sites-enabled/www-ssl.site16
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/nginx/sites-enabled/www-ssl.site b/etc/nginx/sites-enabled/www-ssl.site
index 605f45e..7831d38 100644
--- a/etc/nginx/sites-enabled/www-ssl.site
+++ b/etc/nginx/sites-enabled/www-ssl.site
@@ -26,9 +26,25 @@ server {
rewrite ^/wallet$ /wallet.html break;
}
+ 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 application/javascript;
+
+
+ location ~* \.(png|jpg|jpeg|gif|ico|svg|js|css)$ {
+ root /var/www/taler.net;
+ expires 1y;
+ }
+
# Note: this will go to /var/www/(videos|releases), which we took out of Git
location /videos {
root /var/www;
+ expires max;
}
location /releases {