Enable gzip encoding, which should make downloading of static resources AND pulling of images much faster

This commit is contained in:
Joseph Schorr 2013-11-27 23:17:02 -05:00
parent d5c0f768c2
commit 30314717cc

View file

@ -17,6 +17,15 @@ http {
access_log /tmp/nginx.access.log combined;
sendfile on;
gzip on;
gzip_http_version 1.0;
gzip_proxied any;
gzip_min_length 500;
gzip_disable "MSIE [1-6]\.";
gzip_types text/plain text/xml text/css
text/javascript application/x-javascript
application/octet-stream;
upstream app_server {
server unix:/tmp/gunicorn.sock fail_timeout=0;
# For a TCP configuration: