diff --git a/contrib/webserver/piler-nginx.conf b/contrib/webserver/piler-nginx.conf index 9db50804..0fd30f12 100644 --- a/contrib/webserver/piler-nginx.conf +++ b/contrib/webserver/piler-nginx.conf @@ -12,6 +12,10 @@ server { access_log /var/log/nginx/piler.yourdomain.com-access.log main; error_log /var/log/nginx/piler.yourdomain.com-error.log; + gzip on; + gzip_types text/plain application/xml text/css; + gzip_vary on; + location / { index index.php index.html; } @@ -34,6 +38,9 @@ server { include fastcgi_params; } + location ~* \.(ico|css|js|gif|jpe?g|png)$ { + expires 2w; + } rewrite /search.php /index.php?route=search/search&type=simple; rewrite /advanced.php /index.php?route=search/search&type=advanced;