2022-09-09 16:17:38 +08:00
|
|
|
example.com {
|
2022-10-20 16:24:41 +03:30
|
|
|
@grpc {
|
|
|
|
protocol grpc
|
|
|
|
path # 填写 /你的 ServiceName/*
|
|
|
|
}
|
|
|
|
reverse_proxy @grpc unix//dev/shm/Xray-Trojan-gRPC.socket {
|
|
|
|
transport http {
|
|
|
|
versions h2c
|
|
|
|
}
|
|
|
|
}
|
|
|
|
root * /var/www
|
|
|
|
file_server
|
2022-09-09 16:17:38 +08:00
|
|
|
}
|