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 {
|
||||
@grpc {
|
||||
protocol grpc
|
||||
path # 填写 /你的 ServiceName/*
|
||||
}
|
||||
reverse_proxy @grpc unix//dev/shm/Xray-Trojan-gRPC.socket
|
||||
root * /var/www
|
||||
file_server
|
||||
@grpc {
|
||||
protocol grpc
|
||||
path # 填写 /你的 ServiceName/*
|
||||
}
|
||||
reverse_proxy @grpc unix//dev/shm/Xray-Trojan-gRPC.socket {
|
||||
transport http {
|
||||
versions h2c
|
||||
}
|
||||
}
|
||||
root * /var/www
|
||||
file_server
|
||||
}
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
xx.com {
|
||||
@grpc {
|
||||
protocol grpc
|
||||
path # 填写 /你的 ServiceName/*
|
||||
}
|
||||
reverse_proxy @grpc unix//dev/shm/Xray-VLESS-gRPC.socket
|
||||
root * /var/www
|
||||
file_server
|
||||
@grpc {
|
||||
protocol grpc
|
||||
path # 填写 /你的 ServiceName/*
|
||||
}
|
||||
reverse_proxy @grpc unix//dev/shm/Xray-Trojan-gRPC.socket {
|
||||
transport http {
|
||||
versions h2c
|
||||
}
|
||||
}
|
||||
root * /var/www
|
||||
file_server
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue