mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-25 10:01:29 +00:00
Fix: typo (#28)
This commit is contained in:
parent
c9294ee2fb
commit
d95bf7142e
|
@ -1,7 +1,7 @@
|
||||||
xx.com {
|
xx.com {
|
||||||
@grpc {
|
@grpc {
|
||||||
protocol grpc
|
protocol grpc
|
||||||
path # 填写你的 ServiceName
|
path # 填写 /{你的 ServiceName}/*
|
||||||
}
|
}
|
||||||
reverse_proxy @grpc h2c://127.0.0.1:2002
|
reverse_proxy @grpc h2c://127.0.0.1:2002
|
||||||
root * /var/www
|
root * /var/www
|
||||||
|
|
|
@ -7,8 +7,8 @@ Xray client <--- gRPC(TLS) ---> Caddy2 <--- gRPC(cleartext) ---> Xray server
|
||||||
|
|
||||||
同时,您也可以选择使用 Nginx。示例配置片段如下(来自 @xiaoQzhuren):
|
同时,您也可以选择使用 Nginx。示例配置片段如下(来自 @xiaoQzhuren):
|
||||||
```conf
|
```conf
|
||||||
# 填写你的 ServiceName
|
# 在 location 后填写 /{你的 ServiceName}
|
||||||
location / {
|
location {
|
||||||
if ($request_method != "POST") {
|
if ($request_method != "POST") {
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue