Skip to content

Commit

Permalink
core: nginx 开启 gzip 压缩
Browse files Browse the repository at this point in the history
  • Loading branch information
bin456789 committed Sep 18, 2024
1 parent cd0eb43 commit 76c3ab0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions logviewer-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 76c3ab0

Please sign in to comment.