add gzip for js and css

This commit is contained in:
Ulric Qin 2020-03-31 07:07:32 +08:00
parent 5e7bfed6af
commit b88b9b670f
1 changed files with 8 additions and 0 deletions

View File

@ -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;