Fix BUGs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
## Xray 基于 Nginx 的 vless+ws+tls / XTLS 回落 Nginx 一键安装脚本
|
||||
## Xray 基于 Nginx 的 VLESS WebSocket+TLS / XTLS 一键安装脚本
|
||||
[](https://github.com/paniy/Xray_bash_onekey/issues) [](https://github.com/paniy/Xray_bash_onekey/network) [](https://github.com/paniy/Xray_bash_onekey/stargazers)
|
||||
|
||||
> 感谢 JetBrains 提供的非商业开源软件开发授权。
|
||||
@@ -7,22 +7,22 @@
|
||||
|
||||
### 使用说明
|
||||
* 可以直接输入命令:`idleleo` 管理脚本。
|
||||
* 减少直接访问,隐藏代理域名
|
||||
* 减少直接访问,隐藏代理域名。
|
||||
* 访问域名 302 跳转至 https://www.idleleo.com/helloworld (了解配置过程可自行修改)。
|
||||
* 阻止 HTTP 接访问服务器 IP ,更安全。
|
||||
* 使用来自 [@DuckSoft](https://github.com/DuckSoft) 的分享链接[提案](https://github.com/XTLS/Xray-core/issues/91) (beta),支持Qv2ray、V2rayN、V2rayNG。
|
||||
* 阻止 HTTP 接访问服务器 IP 。
|
||||
* 使用来自 [@DuckSoft](https://github.com/DuckSoft) 的分享链接[提案](https://github.com/XTLS/Xray-core/issues/91) (beta),支持 Qv2ray、V2rayN、V2rayNG。
|
||||
* 使用来自 [XTLS](https://github.com/XTLS/Xray-core/issues/158) 项目的提案,遵循 [UUIDv5](https://tools.ietf.org/html/rfc4122#section-4.3) 标准,可以将自定义字符串映射至 VLESS UUID 。
|
||||
|
||||
### Telegram 群组
|
||||
* telegram 交流群:https://t.me/idleleo_chat 。
|
||||
* Telegram 交流群:https://t.me/idleleo_chat 。
|
||||
|
||||
### 准备工作
|
||||
* 准备一个域名,并将A记录添加好。
|
||||
* [Xray官方说明](https://github.com/XTLS),了解 TLS WebSocket 及 Xray 相关信息。
|
||||
* 安装好 wget。
|
||||
* **安装好 wget**。
|
||||
|
||||
### 安装/更新方式(此为Xray版)
|
||||
VLess+websocket+TLS+Nginx+Website或xtls直连
|
||||
VLESS+Nginx+WebSocket+TLS 或 VLESS+XTLS+Nginx 二选一:
|
||||
```
|
||||
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/paniy/Xray_bash_onekey/main/install.sh" && chmod +x install.sh && bash install.sh
|
||||
```
|
||||
@@ -30,11 +30,11 @@ wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.c
|
||||
### 注意事项
|
||||
* 如果你不了解脚本中各项设置的具体含义,除域名外,请使用脚本提供的默认值。
|
||||
* 使用本脚本需要你拥有 Linux 基础及使用经验,了解计算机网络部分知识,计算机基础操作。
|
||||
* 目前支持Debian 9+ / Ubuntu 18.04+ / Centos7+ ,部分Centos模板可能存在难以处理的编译问题,建议遇到编译问题时,请更换至其他系统模板。
|
||||
* 目前支持 Debian 9+ / Ubuntu 18.04+ / Centos7+ ,部分 Centos 模板可能存在难以处理的编译问题,建议遇到编译问题时,请更换至其他系统模板。
|
||||
* 群主仅提供极其有限的支持,如有问题可以询问群友。
|
||||
* 每周日的凌晨3点,Nginx 会自动重启以配合证书的签发定时任务进行,在此期间,节点无法正常连接,预计持续时间为若干秒至两分钟。
|
||||
* 分享链接为实验版本,不排除未来变动的可能,请自行确认客户端是否支持。
|
||||
* 自定义字符串映射至 UUID 需要客户端支持。
|
||||
* 自定义字符串映射至 UUIDv5 需要客户端支持。
|
||||
|
||||
### 鸣谢
|
||||
* 本脚本来源于 https://github.com/wulabing/V2Ray_ws-tls_bash_onekey 在此感谢 wulabing
|
||||
@@ -45,27 +45,26 @@ wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.c
|
||||
### 证书
|
||||
> 如果你已经拥有了你所使用域名的证书文件,可以将 crt 和 key 文件命名为 xray.crt xray.key 放在 /etc/idleleo/cert 目录下(若目录不存在请先建目录),请注意证书文件权限及证书有效期,自定义证书有效期过期后请自行续签。
|
||||
|
||||
脚本支持自动生成 let's encrypted 证书,有效期3个月,理论上自动生成的证书支持自动续签。
|
||||
脚本支持自动生成 Let's encrypted 证书,有效期3个月,理论上自动生成的证书支持自动续签。
|
||||
|
||||
### 查看客户端配置
|
||||
`cat ~/xray_info.txt`
|
||||
`cat /etc/idleleo/xray_info.txt`
|
||||
|
||||
### xray 简介
|
||||
### Xray 简介
|
||||
|
||||
* xray是一个优秀的开源网络代理工具,可以帮助你畅爽体验互联网,目前已经全平台支持Windows、Mac、Android、IOS、Linux等操作系统的使用。
|
||||
* Xray 是一个优秀的开源网络代理工具,可以帮助你畅爽体验互联网,目前已经全平台支持 Windows、Mac、Android、IOS、Linux 等操作系统的使用。
|
||||
* 本脚本为一键完全配置脚本,在所有流程正常运行完毕后,直接按照输出结果设置客户端即可使用。
|
||||
* 请注意:我们依然强烈建议你全方面的了解整个程序的工作流程及原理。
|
||||
|
||||
### 建议单服务器仅搭建单个代理
|
||||
* 本脚本默认安装最新版本的Xray core。
|
||||
* 建议使用默认的443端口作为连接端口。
|
||||
* 本脚本默认安装最新版本的 Xray core。
|
||||
* 建议使用默认的 443 端口作为连接端口。
|
||||
* 伪装内容可自行替换。
|
||||
|
||||
### 注意事项
|
||||
* 推荐在纯净环境下使用本脚本,如果你是新手,请不要使用Centos系统。
|
||||
* 推荐在纯净环境下使用本脚本,如果你是新手,请不要使用 Centos 系统。
|
||||
* 在尝试本脚本确实可用之前,请不要将本程序应用于生产环境中。
|
||||
* 该程序依赖 Nginx 实现相关功能,请使用 [LNMP](https://lnmp.org) 或其他类似携带 Nginx 脚本安装过 Nginx 的用户特别留意,使用本脚本可能会导致无法预知的错误(未测试,若存在,后续版本可能会处理本问题)。
|
||||
* xray 的部分功能依赖于系统时间,请确保您使用xray程序的系统 UTC 时间误差在三分钟之内,时区无关。
|
||||
* Centos 系统用户请预先在防火墙中放行程序相关端口(默认:80,443)。
|
||||
|
||||
|
||||
@@ -81,12 +80,10 @@ wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.c
|
||||
|
||||
### 相关目录
|
||||
|
||||
Web 目录:`/home/wwwroot/3DCEList`
|
||||
|
||||
xray 服务端配置:`/etc/xray/config.json`
|
||||
|
||||
xray 客户端配置: `~/xray_info.txt`
|
||||
Xray 服务端配置:`/etc/xray/config.json`
|
||||
|
||||
Nginx 目录: `/etc/nginx`
|
||||
|
||||
证书文件: `/etc/idleleo/cert/xray.key 和 /etc/idleleo/cert/xray.crt` 请注意证书权限设置。
|
||||
证书文件:`/etc/idleleo/cert/xray.key 和 /etc/idleleo/cert/xray.crt` 请注意证书权限设置
|
||||
|
||||
配置信息文件等:`/etc/idleleo`
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
"xtlsSettings": {
|
||||
"minVersion": "1.2",
|
||||
"alpn": [
|
||||
"h2",
|
||||
"http/1.1"
|
||||
"http/1.1",
|
||||
"h2"
|
||||
],
|
||||
"certificates": [{
|
||||
"certificateFile": "/etc/idleleo/cert/xray.crt",
|
||||
|
||||
+4
-4
@@ -33,7 +33,7 @@ Error="${Red}[错误]${Font}"
|
||||
Warning="${Red}[警告]${Font}"
|
||||
|
||||
# 版本
|
||||
shell_version="1.4.5.6"
|
||||
shell_version="1.4.5.7"
|
||||
shell_mode="None"
|
||||
shell_mode_show="未安装"
|
||||
version_cmp="/tmp/version_cmp.tmp"
|
||||
@@ -316,10 +316,10 @@ modify_inbound_port() {
|
||||
if [[ "$shell_mode" != "xtls" ]]; then
|
||||
PORT=$((RANDOM + 10000))
|
||||
# sed -i "/\"port\"/c \ \"port\":${PORT}," ${xray_conf}
|
||||
sed -i "8c\ \"port\":${PORT}," ${xray_conf}
|
||||
sed -i "8c\ \"port\": ${PORT}," ${xray_conf}
|
||||
else
|
||||
# sed -i "/\"port\"/c \ \"port\":${port}," ${xray_conf}
|
||||
sed -i "8c\ \"port\":${port}," ${xray_conf}
|
||||
sed -i "8c\ \"port\": ${port}," ${xray_conf}
|
||||
fi
|
||||
judge "Xray inbound_port 修改"
|
||||
echo -e "${OK} ${GreenBG} inbound_port: ${port} ${Font}"
|
||||
@@ -716,8 +716,8 @@ nginx_conf_add() {
|
||||
|
||||
location /ray/
|
||||
{
|
||||
proxy_redirect off;
|
||||
proxy_pass http://127.0.0.1:10000;
|
||||
proxy_redirect off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_connect_timeout 180s;
|
||||
proxy_send_timeout 180s;
|
||||
|
||||
Reference in New Issue
Block a user