support fallback website

This commit is contained in:
root
2022-05-22 08:50:15 +00:00
parent 567845db7a
commit 5c4fdb7b9e
5 changed files with 11 additions and 2 deletions

View File

@@ -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

View File

@@ -35,7 +35,7 @@
"network": "ws",
"security": "none",
"wsSettings": {
"path": "/v2ws"
"path": "/ws"
}
}
}

View File

@@ -35,7 +35,7 @@ http {
root /root/html;
}
location /v2ws { # 与 V2Ray 配置中的 path 保持一致
location /ws { # 与 V2Ray 配置中的 path 保持一致
if ($http_upgrade != "websocket") { # WebSocket协商失败时返回404
return 404;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 134 KiB