mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-12 11:53:17 +00:00
Fixed caddy reverse proxy for gRPC (#82)
* Fixed caddy reverse proxy for gRPC * Fixed tab/space
This commit is contained in:
parent
d959d222e7
commit
e2147abd96
|
@ -3,7 +3,11 @@ example.com {
|
||||||
protocol grpc
|
protocol grpc
|
||||||
path # 填写 /你的 ServiceName/*
|
path # 填写 /你的 ServiceName/*
|
||||||
}
|
}
|
||||||
reverse_proxy @grpc unix//dev/shm/Xray-Trojan-gRPC.socket
|
reverse_proxy @grpc unix//dev/shm/Xray-Trojan-gRPC.socket {
|
||||||
|
transport http {
|
||||||
|
versions h2c
|
||||||
|
}
|
||||||
|
}
|
||||||
root * /var/www
|
root * /var/www
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,11 @@ xx.com {
|
||||||
protocol grpc
|
protocol grpc
|
||||||
path # 填写 /你的 ServiceName/*
|
path # 填写 /你的 ServiceName/*
|
||||||
}
|
}
|
||||||
reverse_proxy @grpc unix//dev/shm/Xray-VLESS-gRPC.socket
|
reverse_proxy @grpc unix//dev/shm/Xray-Trojan-gRPC.socket {
|
||||||
|
transport http {
|
||||||
|
versions h2c
|
||||||
|
}
|
||||||
|
}
|
||||||
root * /var/www
|
root * /var/www
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue