this is my caddy.json:
{
"admin": {
"disabled": false,
"listen": "localhost:1000",
"enforce_origin": false,
"origins": [
""
],
"config": {
"persist": true
}
},
"apps": {
"http": {
"servers": {
"v2_proxy": {
"listen": [
":443"
],
"routes": [
{
"match": [
{
"host": [
"ray.52g.club"
]
}
],
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"transport": {
"protocol": "http",
"read_buffer_size": 4096
},
"upstreams": [
{
"dial": "http://127.0.0.1:3000"
}
]
}
],
"match": [
{
"path": [
"/ray"
]
}
]
}
]
}
]
}
]
}
}
},
"tls": {
"automation": {},
"session_tickets": {}
}
}
}
caddy error:
2020/02/19 04:18:45.239 ERROR http.log.error dial http:: unknown network http: {"request": {"method": "GET", "uri": "/ray", "proto": "HTTP/1.1", "remote_addr": "182.113.232.104:9821", "host": "ray.52g.club", "headers": {"Upgrade": ["websocket"], "User-Agent": ["Go-http-client/1.1"], "Connection": ["Upgrade"], "Sec-Websocket-Key": ["rk3k22x3LrnSVDrsGlkf5w=="], "Sec-Websocket-Version": ["13"]}, "tls": {"resumed": true, "version": 772, "ciphersuite": 4865, "proto": "http/1.1", "proto_mutual": true, "server_name": "ray.52g.club"}}, "status": 502, "err_id": "1dfs5b0fa", "err_trace": "reverseproxy.(*Handler).ServeHTTP (reverseproxy.go:362)"}
my v2ray websocket is listen on 3000 port.but this caddy2 config is doesn’t work.
i really wangt to use V2 caddy ,but because it is new version ,i cant’t search some demo…
I want if you can give me a config.thank you.