From cf252a5996763f2b02cc6844044071062092032e Mon Sep 17 00:00:00 2001 From: xqzr <34030394+xqzr@users.noreply.github.com> Date: Tue, 21 Dec 2021 15:35:53 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BC=98=E9=9B=85...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VLESS-GRPC/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/VLESS-GRPC/README.md b/VLESS-GRPC/README.md index 28fd262..164bfa5 100644 --- a/VLESS-GRPC/README.md +++ b/VLESS-GRPC/README.md @@ -16,8 +16,8 @@ server { ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; - client_header_timeout 1071906480m; - keepalive_timeout 1071906480m; + client_header_timeout 52w; + keepalive_timeout 52w; # 在 location 后填写 /你的 ServiceName location /你的 ServiceName { if ($content_type !~ "application/grpc") { @@ -25,8 +25,8 @@ server { } client_max_body_size 0; grpc_set_header X-Real-IP $proxy_add_x_forwarded_for; - client_body_timeout 1071906480m; - grpc_read_timeout 1071906480m; + client_body_timeout 52w; + grpc_read_timeout 52w; grpc_pass grpc://127.0.0.1:2002; } } From 97af2eb5ef019b873b899db83ed58f83f8a9796e Mon Sep 17 00:00:00 2001 From: xqzr <34030394+xqzr@users.noreply.github.com> Date: Mon, 27 Dec 2021 01:32:54 +0800 Subject: [PATCH 2/3] Update README.md --- VLESS-GRPC/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VLESS-GRPC/README.md b/VLESS-GRPC/README.md index 164bfa5..2407293 100644 --- a/VLESS-GRPC/README.md +++ b/VLESS-GRPC/README.md @@ -24,7 +24,7 @@ server { return 404; } client_max_body_size 0; - grpc_set_header X-Real-IP $proxy_add_x_forwarded_for; + grpc_set_header X-Real-IP $remote_addr; client_body_timeout 52w; grpc_read_timeout 52w; grpc_pass grpc://127.0.0.1:2002; From 65adea00eea66d2f2f9521143b3aa328aa31d224 Mon Sep 17 00:00:00 2001 From: xqzr <34030394+xqzr@users.noreply.github.com> Date: Tue, 8 Mar 2022 22:44:24 +0800 Subject: [PATCH 3/3] client_body_buffer_size: 512k MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 可能解决上行慢的问题 --- VLESS-GRPC/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/VLESS-GRPC/README.md b/VLESS-GRPC/README.md index 2407293..151e42d 100644 --- a/VLESS-GRPC/README.md +++ b/VLESS-GRPC/README.md @@ -24,6 +24,7 @@ server { return 404; } client_max_body_size 0; + client_body_buffer_size 512k; grpc_set_header X-Real-IP $remote_addr; client_body_timeout 52w; grpc_read_timeout 52w;