diff --git a/README.md b/README.md index e716a2c..25fb01e 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,12 @@ > 有问题请开 issue 或者 discussions。 +应需求,加上首页伪装,如果你有想法,请自己把想要的html放入到 项目html 文件,然后后续action部署会自动拿到。 + +!!!!!!! **breaking change, 对ws 新加了path, 请注意查看客户端配置** +!!!!!!! **breaking change, 对ws 新加了path, 请注意查看客户端配置** +!!!!!!! **breaking change, 对ws 新加了path, 请注意查看客户端配置** + 首先查看别人的 [youtube 教程](https://www.youtube.com/watch?v=xHZyDsFYdvA),了解怎么配置 v2ray-heroku。**本项目使用最新 VLESS 协议,请在客户端配置选择 VLESS**。 [详细 VLESS websocket 客户端配置](#vless-websocket-客户端配置) 。 @@ -184,6 +190,9 @@ https://github.com/badafans/better-cloudflare-ip }, "streamSettings": { "network": "ws", + "wsSettings": { + "path": "/ws" // 这里是新加的 + }, "security": "tls", "tlsSettings": { "serverName": "***.herokuapp.com" // heroku app host 或者 cloudflare worker host diff --git a/config.json.tp b/config.json.tp index f0af83d..f966112 100644 --- a/config.json.tp +++ b/config.json.tp @@ -35,7 +35,7 @@ "network": "ws", "security": "none", "wsSettings": { - "path": "/v2ws" + "path": "/ws" } } } diff --git a/nginx.template.conf b/nginx.template.conf index fee7b20..bcc5c44 100644 --- a/nginx.template.conf +++ b/nginx.template.conf @@ -35,7 +35,7 @@ http { root /root/html; } - location /v2ws { # 与 V2Ray 配置中的 path 保持一致 + location /ws { # 与 V2Ray 配置中的 path 保持一致 if ($http_upgrade != "websocket") { # WebSocket协商失败时返回404 return 404; } diff --git a/readme-data/V2rayN-tunnel.jpg b/readme-data/V2rayN-tunnel.jpg index 96ec75a..311f91e 100644 Binary files a/readme-data/V2rayN-tunnel.jpg and b/readme-data/V2rayN-tunnel.jpg differ diff --git a/readme-data/V2rayN.jpg b/readme-data/V2rayN.jpg index 0d6c8f8..506852b 100644 Binary files a/readme-data/V2rayN.jpg and b/readme-data/V2rayN.jpg differ