Download:
child 82:42c94c347db5
parent 80:44ce72e32818
81:c67e1a77c996
Anton Shestakov <av6@dwimlabs.net>, Wed, 06 Apr 2016 13:23:50 +0800
provision: gzip static files (.css and .js)

1 файлов изменено, 4 вставок(+), 1 удалений(-) [+]
provision/roles/fruitbar/templates/etc/nginx/sites-available/fruitbar file | annotate | diff | comparison | revisions
--- a/provision/roles/fruitbar/templates/etc/nginx/sites-available/fruitbar Wed Apr 06 13:23:19 2016 +0800
+++ b/provision/roles/fruitbar/templates/etc/nginx/sites-available/fruitbar Wed Apr 06 13:23:50 2016 +0800
@@ -58,8 +58,11 @@
root /home/{{ user }}/webapps/fruitbar;
location /static/ {
+ access_log off;
+ gzip on;
+ gzip_types text/css application/javascript application/x-javascript text/javascript;
+ gzip_vary on;
expires max;
- access_log off;
}
location / {