mirror of
https://github.com/XTLS/Xray-examples.git
synced 2025-09-17 12:44:28 +08:00
add Trojan-gRPC-Caddy2/Nginx
Fork https://github.com/XTLS/Xray-examples/tree/main/VLESS-GRPC
This commit is contained in:
9
Trojan-gRPC-Caddy2/Nginx/Caddyfile
Normal file
9
Trojan-gRPC-Caddy2/Nginx/Caddyfile
Normal file
@@ -0,0 +1,9 @@
|
||||
example.com {
|
||||
@grpc {
|
||||
protocol grpc
|
||||
path # 填写 /你的 ServiceName/*
|
||||
}
|
||||
reverse_proxy @grpc unix//dev/shm/Xray-Trojan-gRPC.socket
|
||||
root * /var/www
|
||||
file_server
|
||||
}
|
Reference in New Issue
Block a user