소스 검색

configures nginx for serving .gz files

bach 3 년 전
부모
커밋
52cf652608
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      Docker/nginx/default.conf

+ 11 - 0
Docker/nginx/default.conf

@@ -35,4 +35,15 @@ server {
     location ~ /\.ht {
         deny all;
     }
+
+    gzip on;
+    gzip_types application/json;
+    
+    gzip_http_version 1.0;
+    gzip_static on;
+
+    location ~* \.(js|css|ttf|json)$ {
+      gzip_static on;
+    }
+
 }