From d115310bb9ec824570e0e1eb194b6616db2dca4d Mon Sep 17 00:00:00 2001 From: srcrs Date: Sat, 2 Sep 2023 23:46:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0nginx=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8dd1d5e..31e1540 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ docker-compose up -d # nginx反代 -这里需要注意/ws,若不设置proxy_read_timeout参数,则默认1分钟断开。 +这里需要注意/ws,若不设置proxy_read_timeout参数,则默认1分钟断开。静态文件增加gzip可以大幅压缩网络传输数据 ```conf server { @@ -74,6 +74,8 @@ server { server_name rss.lass.cc; ssl_certificate fullchain.cer; ssl_certificate_key lass.cc.key; + gzip on; + gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; location / { proxy_pass http://localhost:8080; }