mirror of
https://github.com/XTLS/Xray-examples.git
synced 2025-06-28 21:26:06 +08:00
14 lines
305 B
Caddyfile
14 lines
305 B
Caddyfile
xx.com {
|
|
@ws {
|
|
path /ws
|
|
header Connection *Upgrade*
|
|
header Upgrade websocket
|
|
}
|
|
@grpc protocol grpc
|
|
reverse_proxy @ws http://127.0.0.1:2001
|
|
reverse_proxy @grpc h2c://127.0.0.1:2002
|
|
reverse_proxy /h2 h2c://127.0.0.1:2003
|
|
root * /var/www
|
|
file_server
|
|
}
|