From d95bf7142e6e0054e9d9f72d69b1a8608442eb83 Mon Sep 17 00:00:00 2001 From: Jim Han <50871214+JimhHan@users.noreply.github.com> Date: Sun, 28 Mar 2021 16:55:46 +0800 Subject: [PATCH] Fix: typo (#28) --- VLESS-GRPC/Caddyfile | 2 +- VLESS-GRPC/README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VLESS-GRPC/Caddyfile b/VLESS-GRPC/Caddyfile index ae92a47..8de2318 100644 --- a/VLESS-GRPC/Caddyfile +++ b/VLESS-GRPC/Caddyfile @@ -1,7 +1,7 @@ xx.com { @grpc { protocol grpc - path # 填写你的 ServiceName + path # 填写 /{你的 ServiceName}/* } reverse_proxy @grpc h2c://127.0.0.1:2002 root * /var/www diff --git a/VLESS-GRPC/README.md b/VLESS-GRPC/README.md index 2c7c52c..ca910ff 100644 --- a/VLESS-GRPC/README.md +++ b/VLESS-GRPC/README.md @@ -7,8 +7,8 @@ Xray client <--- gRPC(TLS) ---> Caddy2 <--- gRPC(cleartext) ---> Xray server 同时,您也可以选择使用 Nginx。示例配置片段如下(来自 @xiaoQzhuren): ```conf -# 填写你的 ServiceName -location / { +# 在 location 后填写 /{你的 ServiceName} +location { if ($request_method != "POST") { return 404; } @@ -17,4 +17,4 @@ location / { grpc_pass grpc://127.0.0.1:2002; } -``` \ No newline at end of file +```