Sfoglia il codice sorgente

update 优化 nginx开启静态资源压缩 增加静态文件传输效率

疯狂的狮子Li 2 mesi fa
parent
commit
78abb617ce
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      script/docker/nginx/conf/nginx.conf

+ 2 - 0
script/docker/nginx/conf/nginx.conf

@@ -14,6 +14,8 @@ http {
     keepalive_timeout  65;
     # 限制body大小
     client_max_body_size 100m;
+    # 开启静态资源压缩
+    gzip_static on;
 
     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                           '$status $body_bytes_sent "$http_referer" '