浏览代码

Добавил gzip

Book Pauk 6 年之前
父节点
当前提交
c97e8787a4
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      docs/nginx/omnireader

+ 6 - 0
docs/nginx/omnireader

@@ -1,8 +1,14 @@
 server {
   listen 80;
   server_name omnireader.ru;
+
   client_max_body_size 50m;
 
+  gzip on;
+  gzip_min_length 1024;
+  gzip_proxied expired no-cache no-store private auth;
+  gzip_types *;
+
   location /api {
     proxy_pass http://localhost:44081;
   }