add gzip for js and css
This commit is contained in:
parent
5e7bfed6af
commit
b88b9b670f
|
@ -46,6 +46,14 @@ http {
|
|||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
gzip on;
|
||||
gzip_min_length 1k;
|
||||
gzip_buffers 4 16k;
|
||||
gzip_comp_level 2;
|
||||
gzip_types application/javascript application/x-javascript text/css text/javascript image/jpeg image/gif image/png;
|
||||
gzip_vary off;
|
||||
gzip_disable "MSIE [1-6]\.";
|
||||
|
||||
upstream n9e.monapi {
|
||||
server 127.0.0.1:5800;
|
||||
keepalive 10;
|
||||
|
|
Loading…
Reference in New Issue