From c30c5ec344c65d08a15af1f36edc18d6c901b2a8 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Fri, 28 Oct 2022 17:45:40 +0800 Subject: [PATCH] docs: update nginx configure --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3c0c23e..9ee1b43 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ server { listen 80; listen [::]:80; server_name kms.343.re; # 改为自己的KMS域名 + location / { if ($http_user_agent !~* (curl|wget)) { # 来自非命令行的请求,重定向到https return 301 https://$server_name$request_uri; @@ -139,8 +140,8 @@ server { server_name kms.343.re; # 改为自己的KMS域名 ssl_certificate /etc/ssl/certs/343.re/fullchain.pem; # 改为自己的TLS证书文件 ssl_certificate_key /etc/ssl/certs/343.re/privkey.pem; # 改为自己的TLS私钥文件 - - gzip on; # 开启gzip压缩,提高加载速度 + + gzip on; # 可选,开启gzip压缩,提高加载速度 gzip_buffers 32 4K; gzip_comp_level 6; gzip_min_length 100;