Enable gzip encoding, which should make downloading of static resources AND pulling of images much faster
This commit is contained in:
parent
d5c0f768c2
commit
30314717cc
1 changed files with 9 additions and 0 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue