Xray-examples/VLESS-GRPC/Caddyfile
ws2bhhh 5c0b1523f1 Update Caddyfile
消除可能的歧义
2023-02-04 12:22:07 -05:00

14 lines
313 B
Caddyfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
}