mirror of
https://github.com/XTLS/Xray-examples.git
synced 2025-06-28 13:16:06 +08:00
Update README.md
This commit is contained in:
parent
978af7ceea
commit
2694edf105
@ -7,7 +7,7 @@ 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;
|
||||||
@ -17,4 +17,4 @@ location / {
|
|||||||
grpc_pass grpc://127.0.0.1:2002;
|
grpc_pass grpc://127.0.0.1:2002;
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user