v2fly / v2ray-step-by-step

This repo is a fork of ToutyRater/v2ray-guide, we aim to provide a new step-by-step guide of v2ray
https://guide.v2fly.org
Creative Commons Attribution 4.0 International
745 stars 425 forks source link

Fix Caddy V2 Websocket Configuration #218

Open elvisw opened 3 years ago

elvisw commented 3 years ago

Caddy v2配置中的 path /ray 这一行会导致其无法按预期工作。caddy社区的讨论也说明了这个问题: https://caddy.community/t/caddy-v2-how-to-proxy-websoket-v2ray-websocket-tls/7040/12

kslr commented 3 years ago

但是在其他配置中路径指定为,这是否测试可行?

elvisw commented 3 years ago

但是在其他配置中路径指定为,这是否测试可行?

其他配置中路径指定 是指?

kslr commented 3 years ago

但是在其他配置中路径指定为,这是否测试可行?

其他配置中路径指定 是指?

比如在接下来的 core 中使用了路径 ray

elvisw commented 3 years ago

但是在其他配置中路径指定为,这是否测试可行?

其他配置中路径指定 是指?

比如在接下来的 core 中使用了路径 ray

这个不影响,v2ray core中的streamSettings -> wsSettings -> "path": "/ray" 设置依旧有效

我目前就是这么设置的

cnszlijz commented 2 weeks ago

我今天在nginx中也发现了类似的现象,path /ray会导致传给v2ray的路径中被吃掉一个/ray