From 76c3ab01a23e8676a6145b89a973eded59c615ec Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 18 Sep 2024 22:29:05 +0800 Subject: [PATCH] =?UTF-8?q?core:=20nginx=20=E5=BC=80=E5=90=AF=20gzip=20?= =?UTF-8?q?=E5=8E=8B=E7=BC=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logviewer-nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/logviewer-nginx.conf b/logviewer-nginx.conf index 4aee3f1..b04a247 100644 --- a/logviewer-nginx.conf +++ b/logviewer-nginx.conf @@ -3,11 +3,19 @@ server { listen [::]:80; root /; + gzip on; + gzip_types text/plain; + + location = / { try_files /logviewer.html 404; } location = /reinstall.log { + types { + text/plain log; + } + try_files $uri 404; }