mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-24 00:48:39 +08:00
support fallback website
This commit is contained in:
@@ -8,6 +8,12 @@
|
|||||||
|
|
||||||
> 有问题请开 issue 或者 discussions。
|
> 有问题请开 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**。
|
首先查看别人的 [youtube 教程](https://www.youtube.com/watch?v=xHZyDsFYdvA),了解怎么配置 v2ray-heroku。**本项目使用最新 VLESS 协议,请在客户端配置选择 VLESS**。
|
||||||
[详细 VLESS websocket 客户端配置](#vless-websocket-客户端配置) 。
|
[详细 VLESS websocket 客户端配置](#vless-websocket-客户端配置) 。
|
||||||
|
|
||||||
@@ -184,6 +190,9 @@ https://github.com/badafans/better-cloudflare-ip
|
|||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
"network": "ws",
|
"network": "ws",
|
||||||
|
"wsSettings": {
|
||||||
|
"path": "/ws" // 这里是新加的
|
||||||
|
},
|
||||||
"security": "tls",
|
"security": "tls",
|
||||||
"tlsSettings": {
|
"tlsSettings": {
|
||||||
"serverName": "***.herokuapp.com" // heroku app host 或者 cloudflare worker host
|
"serverName": "***.herokuapp.com" // heroku app host 或者 cloudflare worker host
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
"network": "ws",
|
"network": "ws",
|
||||||
"security": "none",
|
"security": "none",
|
||||||
"wsSettings": {
|
"wsSettings": {
|
||||||
"path": "/v2ws"
|
"path": "/ws"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ http {
|
|||||||
root /root/html;
|
root /root/html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /v2ws { # 与 V2Ray 配置中的 path 保持一致
|
location /ws { # 与 V2Ray 配置中的 path 保持一致
|
||||||
if ($http_upgrade != "websocket") { # WebSocket协商失败时返回404
|
if ($http_upgrade != "websocket") { # WebSocket协商失败时返回404
|
||||||
return 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 |
Reference in New Issue
Block a user