From 68f95380cad15f90d37322bb07428d111c7d72fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=96=E5=A5=B3=E5=AD=A9=E7=9A=84=E5=B0=8F=E7=81=AB?= =?UTF-8?q?=E6=9F=B4?= <44471469+Erope@users.noreply.github.com> Date: Tue, 24 Oct 2023 09:35:32 +0000 Subject: [PATCH] Update Nginx Configuration --- docs/en_US/guide/q3.md | 10 +++++++++- docs/guide/q3.md | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/en_US/guide/q3.md b/docs/en_US/guide/q3.md index d7f6dd1d..c106745e 100644 --- a/docs/en_US/guide/q3.md +++ b/docs/en_US/guide/q3.md @@ -11,9 +11,17 @@ server { ssl_certificate /data/letsencrypt/fullchain.pem; # Your domain certificate path ssl_certificate_key /data/letsencrypt/key.pem; # Your domain's private key path + ssl_stapling on; + ssl_session_timeout 1d; + ssl_session_cache shared:SSL:10m; # This line may conflict with other configuration files. If a conflict occurs, please comment out this line + ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; underscores_in_headers on; + keepalive_time 24h; + keepalive_requests 100000; + keepalive_timeout 120s; + location / { grpc_read_timeout 300s; grpc_send_timeout 300s; @@ -24,7 +32,7 @@ server { upstream grpcservers { server localhost:5555; - keepalive 1024; + keepalive 512; } ``` diff --git a/docs/guide/q3.md b/docs/guide/q3.md index 4df30ed2..e23448c0 100644 --- a/docs/guide/q3.md +++ b/docs/guide/q3.md @@ -11,9 +11,17 @@ server { ssl_certificate /data/letsencrypt/fullchain.pem; # 你的域名证书路径 ssl_certificate_key /data/letsencrypt/key.pem; # 你的域名私钥路径 + ssl_stapling on; + ssl_session_timeout 1d; + ssl_session_cache shared:SSL:10m; # 此项可能会和其他配置文件冲突,如冲突请注释此项 + ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; underscores_in_headers on; + keepalive_time 24h; + keepalive_requests 100000; + keepalive_timeout 120s; + location / { grpc_read_timeout 300s; grpc_send_timeout 300s; @@ -24,7 +32,7 @@ server { upstream grpcservers { server localhost:5555; - keepalive 1024; + keepalive 512; } ```