From d767df4267c5455cd393e2c49ff34a5bf902f721 Mon Sep 17 00:00:00 2001 From: xqzr <34030394+xqzr@users.noreply.github.com> Date: Sun, 2 May 2021 22:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B6=85=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=20&=20=E7=B2=BE=E5=87=86=E8=AF=86=E5=88=ABgRPC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VLESS-GRPC/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VLESS-GRPC/README.md b/VLESS-GRPC/README.md index ca910ff..af317ec 100644 --- a/VLESS-GRPC/README.md +++ b/VLESS-GRPC/README.md @@ -5,11 +5,11 @@ Xray client <--- gRPC(TLS) ---> Caddy2 <--- gRPC(cleartext) ---> Xray server ## Nginx: -同时,您也可以选择使用 Nginx。示例配置片段如下(来自 @xiaoQzhuren): +同时,您也可以选择使用 Nginx。示例配置片段如下(来自 [@xqzr](https://github.com/xqzr)): ```conf # 在 location 后填写 /{你的 ServiceName} location { - if ($request_method != "POST") { + if ($content_type !~ "application/grpc") { return 404; } client_max_body_size 0;