Subscription Conversion Service

This commit is contained in:
心隨緣動 2025-08-29 19:58:20 +08:00 committed by GitHub
parent d0741f462f
commit 50b9096165
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

15
x-ui.sh
View File

@ -1286,6 +1286,7 @@ echo ""
echo ""
domain=$(basename "$(dirname "$existing_cert")")
echo -e "${green}------------->>>>接下来进行sublink订阅转换服务的安装 ........${plain}"
sleep 3
echo ""
else
echo -e "${red}警告:未找到证书和密钥,面板不安全!${plain}"
@ -1317,6 +1318,11 @@ cp "${acme_path}/${domain}.key" "/etc/nginx/ssl/${domain}.key"
# 重载 nginx让新证书生效
systemctl reload nginx
# --------- 安装/部署sublink服务 ----------
bash <(curl -Ls https://raw.githubusercontent.com/xeefei/sublink/main/install.sh)
# --------- 配置 Nginx 反向代理 ----------
NGINX_CONF="/etc/nginx/conf.d/sublink.conf"
cat > $NGINX_CONF <<EOF
@ -1342,10 +1348,6 @@ server {
}
EOF
# --------- 安装/部署sublink服务 ----------
bash <(curl -Ls https://raw.githubusercontent.com/xeefei/sublink/main/install.sh)
# --------- 开放防火墙端口 ----------
echo ""
echo -e "${yellow}请务必手动放行${plain} ${red} 8000 和 15268 ${yellow}端口!!${plain}"
@ -1357,6 +1359,11 @@ echo -e "${green}【订阅转换模块】安装完成!!!${plain}"
echo ""
echo -e "${green}Web 界面访问地址https://${domain}:15268${plain}"
echo ""
echo -e "${green}若要登录前端网页使用【订阅转换】,请直接复制以上地址${plain}"
echo ""
echo -e "${green}接下来流程会进入3X-UI中文优化版x-ui 菜单项${plain}"
sleep 8
echo ""
# --------- 返回菜单 ----------
show_menu
}