mirror of https://github.com/wulabing/Xray_onekey
parent
d3cac0c8d8
commit
f02dbdf101
|
@ -29,7 +29,7 @@ https://github.com/XTLS/Xray-core/issues/91
|
||||||
- VLESS + TCP + TLS + Nginx + WebSocket
|
- VLESS + TCP + TLS + Nginx + WebSocket
|
||||||
|
|
||||||
```
|
```
|
||||||
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontents.com/wulabing/Xray_onekey/nginx_forward/install.sh" && chmod +x install.sh && bash install.sh
|
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/Xray_onekey/nginx_forward/install.sh" && chmod +x install.sh && bash install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### 安装/更新方式(Xray 前置)
|
### 安装/更新方式(Xray 前置)
|
||||||
|
@ -41,7 +41,7 @@ wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontents.
|
||||||
- VLESS + TCP + XTLS / TLS + Nginx 及 VLESS + TCP + TLS + Nginx + WebSocket 回落并存模式
|
- VLESS + TCP + XTLS / TLS + Nginx 及 VLESS + TCP + TLS + Nginx + WebSocket 回落并存模式
|
||||||
|
|
||||||
```
|
```
|
||||||
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontents.com/wulabing/Xray_onekey/main/install.sh" && chmod +x install.sh && bash install.sh
|
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/Xray_onekey/main/install.sh" && chmod +x install.sh && bash install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
20
install.sh
20
install.sh
|
@ -86,13 +86,13 @@ function system_check() {
|
||||||
print_ok "当前系统为 Centos ${VERSION_ID} ${VERSION}"
|
print_ok "当前系统为 Centos ${VERSION_ID} ${VERSION}"
|
||||||
INS="yum install -y"
|
INS="yum install -y"
|
||||||
${INS} wget
|
${INS} wget
|
||||||
wget -N -P /etc/yum.repos.d/ https://raw.githubusercontents.com/wulabing/Xray_onekey/${github_branch}/basic/nginx.repo
|
wget -N -P /etc/yum.repos.d/ https://raw.githubusercontent.com/wulabing/Xray_onekey/${github_branch}/basic/nginx.repo
|
||||||
|
|
||||||
|
|
||||||
elif [[ "${ID}" == "ol" ]]; then
|
elif [[ "${ID}" == "ol" ]]; then
|
||||||
print_ok "当前系统为 Oracle Linux ${VERSION_ID} ${VERSION}"
|
print_ok "当前系统为 Oracle Linux ${VERSION_ID} ${VERSION}"
|
||||||
INS="yum install -y"
|
INS="yum install -y"
|
||||||
wget -N -P /etc/yum.repos.d/ https://raw.githubusercontents.com/wulabing/Xray_onekey/${github_branch}/basic/nginx.repo
|
wget -N -P /etc/yum.repos.d/ https://raw.githubusercontent.com/wulabing/Xray_onekey/${github_branch}/basic/nginx.repo
|
||||||
elif [[ "${ID}" == "debian" && ${VERSION_ID} -ge 9 ]]; then
|
elif [[ "${ID}" == "debian" && ${VERSION_ID} -ge 9 ]]; then
|
||||||
print_ok "当前系统为 Debian ${VERSION_ID} ${VERSION}"
|
print_ok "当前系统为 Debian ${VERSION_ID} ${VERSION}"
|
||||||
INS="apt install -y"
|
INS="apt install -y"
|
||||||
|
@ -209,7 +209,7 @@ function dependency_install() {
|
||||||
${INS} jq
|
${INS} jq
|
||||||
|
|
||||||
if ! command -v jq; then
|
if ! command -v jq; then
|
||||||
wget -P /usr/bin https://raw.githubusercontents.com/wulabing/Xray_onekey/${github_branch}/binary/jq && chmod +x /usr/bin/jq
|
wget -P /usr/bin https://raw.githubusercontent.com/wulabing/Xray_onekey/${github_branch}/binary/jq && chmod +x /usr/bin/jq
|
||||||
judge "安装 jq"
|
judge "安装 jq"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -290,13 +290,13 @@ function port_exist_check() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
function update_sh() {
|
function update_sh() {
|
||||||
ol_version=$(curl -L -s https://raw.githubusercontents.com/wulabing/Xray_onekey/${github_branch}/install.sh | grep "shell_version=" | head -1 | awk -F '=|"' '{print $3}')
|
ol_version=$(curl -L -s https://raw.githubusercontent.com/wulabing/Xray_onekey/${github_branch}/install.sh | grep "shell_version=" | head -1 | awk -F '=|"' '{print $3}')
|
||||||
if [[ "$shell_version" != "$(echo -e "$shell_version\n$ol_version" | sort -rV | head -1)" ]]; then
|
if [[ "$shell_version" != "$(echo -e "$shell_version\n$ol_version" | sort -rV | head -1)" ]]; then
|
||||||
print_ok "存在新版本,是否更新 [Y/N]?"
|
print_ok "存在新版本,是否更新 [Y/N]?"
|
||||||
read -r update_confirm
|
read -r update_confirm
|
||||||
case $update_confirm in
|
case $update_confirm in
|
||||||
[yY][eE][sS] | [yY])
|
[yY][eE][sS] | [yY])
|
||||||
wget -N --no-check-certificate https://raw.githubusercontents.com/wulabing/Xray_onekey/${github_branch}/install.sh
|
wget -N --no-check-certificate https://raw.githubusercontent.com/wulabing/Xray_onekey/${github_branch}/install.sh
|
||||||
print_ok "更新完成"
|
print_ok "更新完成"
|
||||||
print_ok "您可以通过 bash $0 执行本程序"
|
print_ok "您可以通过 bash $0 执行本程序"
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -344,7 +344,7 @@ function modify_ws() {
|
||||||
|
|
||||||
function configure_nginx() {
|
function configure_nginx() {
|
||||||
nginx_conf="/etc/nginx/conf.d/${domain}.conf"
|
nginx_conf="/etc/nginx/conf.d/${domain}.conf"
|
||||||
cd /etc/nginx/conf.d/ && rm -f ${domain}.conf && wget -O ${domain}.conf https://raw.githubusercontents.com/wulabing/Xray_onekey/${github_branch}/config/web.conf
|
cd /etc/nginx/conf.d/ && rm -f ${domain}.conf && wget -O ${domain}.conf https://raw.githubusercontent.com/wulabing/Xray_onekey/${github_branch}/config/web.conf
|
||||||
sed -i "s/xxx/${domain}/g" ${nginx_conf}
|
sed -i "s/xxx/${domain}/g" ${nginx_conf}
|
||||||
judge "Nginx 配置 修改"
|
judge "Nginx 配置 修改"
|
||||||
|
|
||||||
|
@ -366,13 +366,13 @@ function modify_port() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function configure_xray() {
|
function configure_xray() {
|
||||||
cd /usr/local/etc/xray && rm -f config.json && wget -O config.json https://raw.githubusercontents.com/wulabing/Xray_onekey/${github_branch}/config/xray_xtls-rprx-direct.json
|
cd /usr/local/etc/xray && rm -f config.json && wget -O config.json https://raw.githubusercontent.com/wulabing/Xray_onekey/${github_branch}/config/xray_xtls-rprx-direct.json
|
||||||
modify_UUID
|
modify_UUID
|
||||||
modify_port
|
modify_port
|
||||||
}
|
}
|
||||||
|
|
||||||
function configure_xray_ws() {
|
function configure_xray_ws() {
|
||||||
cd /usr/local/etc/xray && rm -f config.json && wget -O config.json https://raw.githubusercontents.com/wulabing/Xray_onekey/${github_branch}/config/xray_tls_ws_mix-rprx-direct.json
|
cd /usr/local/etc/xray && rm -f config.json && wget -O config.json https://raw.githubusercontent.com/wulabing/Xray_onekey/${github_branch}/config/xray_tls_ws_mix-rprx-direct.json
|
||||||
modify_UUID
|
modify_UUID
|
||||||
modify_UUID_ws
|
modify_UUID_ws
|
||||||
modify_port
|
modify_port
|
||||||
|
@ -500,7 +500,7 @@ function configure_web() {
|
||||||
mkdir -p /www/xray_web
|
mkdir -p /www/xray_web
|
||||||
# 不在进行页面伪装 访问首页默认403 Forbidden
|
# 不在进行页面伪装 访问首页默认403 Forbidden
|
||||||
|
|
||||||
# wget -O web.tar.gz https://raw.githubusercontents.com/wulabing/Xray_onekey/main/basic/web.tar.gz
|
# wget -O web.tar.gz https://raw.githubusercontent.com/wulabing/Xray_onekey/main/basic/web.tar.gz
|
||||||
# tar xzf web.tar.gz -C /www/xray_web
|
# tar xzf web.tar.gz -C /www/xray_web
|
||||||
# judge "站点伪装"
|
# judge "站点伪装"
|
||||||
# rm -f web.tar.gz
|
# rm -f web.tar.gz
|
||||||
|
@ -647,7 +647,7 @@ function show_error_log() {
|
||||||
|
|
||||||
function bbr_boost_sh() {
|
function bbr_boost_sh() {
|
||||||
[ -f "tcp.sh" ] && rm -rf ./tcp.sh
|
[ -f "tcp.sh" ] && rm -rf ./tcp.sh
|
||||||
wget -N --no-check-certificate "https://raw.githubusercontents.com/ylx2016/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
|
wget -N --no-check-certificate "https://raw.githubusercontent.com/ylx2016/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
function mtproxy_sh() {
|
function mtproxy_sh() {
|
||||||
|
|
Loading…
Reference in New Issue