15 lines
333 B
Caddyfile
Raw Permalink Normal View History

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