Merge pull request #103 from wo10378931/master

update nginx的配置添加gzip
This commit is contained in:
Marvin Zhang
2019-08-02 09:13:22 +08:00
committed by GitHub

View File

@@ -1,4 +1,12 @@
server {
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
#gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary off;
gzip_disable "MSIE [1-6]\.";
listen 8080;
root /app/dist;
index index.html;