Xray-examples/VLESS-GRPC/Caddyfile

14 lines
313 B
Caddyfile
Raw Normal View History

xx.com {
@grpc {
protocol grpc
2023-02-04 15:59:23 +00:00
path /ServiceName/* # 修改为你自己的 ServiceName且仅能存在两个斜杠。/MyService/ServiceName/*会导致错误)
}
2022-11-15 21:46:29 +00:00
reverse_proxy @grpc unix//dev/shm/Xray-VLESS-gRPC.socket {
transport http {
versions h2c
}
}
root * /var/www
file_server
}