2022-09-09 08:17:38 +00:00
|
|
|
example.com {
|
2022-10-20 12:54:41 +00:00
|
|
|
@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 08:17:38 +00:00
|
|
|
}
|