Browse Source

更新 'conf.d/businessweb-nginx.conf'

mengqingchuang 4 years ago
parent
commit
dce4802bcc
1 changed files with 7 additions and 0 deletions
  1. 7 0
      conf.d/businessweb-nginx.conf

+ 7 - 0
conf.d/businessweb-nginx.conf

@@ -43,6 +43,13 @@ server {
     server_name club-admin.xinyueyouxi.com;
     charset utf-8;
 
+
+	
+    gzip on;							//开启gzip压缩
+    gzip_http_version 1.1				//压缩协议版本
+    gzip_comp_level 6;
+    gzip_types text/css text/javascript application/javascript image/jpeg image/png image/gif;
+    
     add_header Access-Control-Allow-Origin *;
     add_header Access-Control-Allow-Headers *;
     add_header Access-Control-Allow-Methods GET,POST,OPTIONS;