mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-22 08:31:29 +00:00
5c0b1523f1
消除可能的歧义
14 lines
313 B
Caddyfile
14 lines
313 B
Caddyfile
xx.com {
|
||
@grpc {
|
||
protocol grpc
|
||
path /ServiceName/* # 修改为你自己的 ServiceName,且仅能存在两个斜杠。(如:/MyService/ServiceName/*会导致错误)
|
||
}
|
||
reverse_proxy @grpc unix//dev/shm/Xray-VLESS-gRPC.socket {
|
||
transport http {
|
||
versions h2c
|
||
}
|
||
}
|
||
root * /var/www
|
||
file_server
|
||
}
|