Procházet zdrojové kódy

added gzip to config

master
maeda před 7 roky
rodič
revize
b0184594bb
1 změnil soubory, kde provedl 9 přidání a 1 odebrání
  1. 9
    1
      nginx/configs/nginx.conf

+ 9
- 1
nginx/configs/nginx.conf Zobrazit soubor

@@ -25,7 +25,15 @@ http {
25 25
 
26 26
     keepalive_timeout  65;
27 27
 
28
-    #gzip  on;
28
+	gzip  on;
29
+    gzip_vary on;
30
+    gzip_min_length 10240;
31
+    gzip_proxied expired no-cache no-store private auth;
32
+    gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
33
+    gzip_disable "MSIE [1-6]\.";
34
+
35
+    # Enable ngx_http_gzip_static_module for serving compressed files when possible.
36
+    gzip_static on;
29 37
 
30 38
     # Bring over default server config
31 39
     include /etc/nginx/conf.d/default.conf;

Načítá se…
Zrušit
Uložit