Enable gzip compression
This commit is contained in:
parent
8c590fc68f
commit
ed78a54d5b
1 changed files with 9 additions and 1 deletions
10
nginx.tmpl
10
nginx.tmpl
|
|
@ -57,7 +57,15 @@ map $scheme $proxy_x_forwarded_ssl {
|
|||
https on;
|
||||
}
|
||||
|
||||
gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
||||
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_min_length 256;
|
||||
gzip_types "*";
|
||||
|
||||
log_format vhost '$host $remote_addr - $remote_user [$time_local] '
|
||||
'"$request" $status $body_bytes_sent '
|
||||
|
|
|
|||
Loading…
Reference in a new issue