From 784ab2ea15eb7db22154869a0cddc581e50f50cb Mon Sep 17 00:00:00 2001 From: xqzr <34030394+xqzr@users.noreply.github.com> Date: Wed, 12 May 2021 18:44:13 +0800 Subject: [PATCH] Fix[gRPC] nginx config (#30) --- 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;