Quellcode durchsuchen

configures nginx for serving .gz files

bach vor 3 Jahren
Ursprung
Commit
52cf652608
1 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
  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;
+    }
+
 }