mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-24 17:41:29 +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
|
@ -1,9 +1,13 @@
|
||||||
example.com {
|
example.com {
|
||||||
@grpc {
|
@grpc {
|
||||||
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 {
|
||||||
root * /var/www
|
transport http {
|
||||||
file_server
|
versions h2c
|
||||||
|
}
|
||||||
|
}
|
||||||
|
root * /var/www
|
||||||
|
file_server
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
xx.com {
|
xx.com {
|
||||||
@grpc {
|
@grpc {
|
||||||
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 {
|
||||||
root * /var/www
|
transport http {
|
||||||
file_server
|
versions h2c
|
||||||
|
}
|
||||||
|
}
|
||||||
|
root * /var/www
|
||||||
|
file_server
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue