Browse Source

修改nginx配置

rainwer 6 months ago
parent
commit
a819a07929
1 changed files with 6 additions and 0 deletions
  1. 6 0
      nginx.conf

+ 6 - 0
nginx.conf

@@ -19,6 +19,12 @@ http {
     gzip_static on;
     # 允许解压(兼容不支持gzip的客户端)
     gunzip on;
+    gzip_disable "msie6";
+    gzip_vary on;
+    gzip_proxied any;
+    gzip_comp_level 6;
+    gzip_buffers 16 8k;
+    gzip_http_version 1.1;
 
     server { 
 	listen 8079;