Fix: typo (#28)

This commit is contained in:
Jim Han 2021-03-28 16:55:46 +08:00 committed by GitHub
parent c9294ee2fb
commit d95bf7142e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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;
}
```
```