Explorar o código

configures nginx for serving .gz files

bach %!s(int64=4) %!d(string=hai) anos
pai
achega
52cf652608
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  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;
+    }
+
 }