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
|
@ -3,7 +3,11 @@ example.com {
|
|||
protocol grpc
|
||||
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
|
||||
file_server
|
||||
}
|
||||
|
|
|
@ -3,7 +3,11 @@ xx.com {
|
|||
protocol grpc
|
||||
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
|
||||
file_server
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue