Xray-examples/Trojan-gRPC-Caddy2/Nginx/Caddyfile
Hirbod Behnam e2147abd96
Fixed caddy reverse proxy for gRPC (#82)
* Fixed caddy reverse proxy for gRPC

* Fixed tab/space
2022-10-20 08:54:41 -04:00

14 lines
216 B
Caddyfile

example.com {
@grpc {
protocol grpc
path # 填写 /你的 ServiceName/*
}
reverse_proxy @grpc unix//dev/shm/Xray-Trojan-gRPC.socket {
transport http {
versions h2c
}
}
root * /var/www
file_server
}