Subscription Conversion Service

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

11
x-ui.sh
View File

@ -1297,6 +1297,10 @@ else
exit 1
fi
# --------- 安装/部署sublink服务 ----------
bash <(curl -Ls https://raw.githubusercontent.com/xeefei/sublink/main/install.sh)
# --------- 安装 Nginx ----------
if ! command -v nginx &>/dev/null; then
@ -1318,11 +1322,6 @@ 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
@ -1357,6 +1356,8 @@ echo ""
echo ""
echo -e "${green}【订阅转换模块】安装完成!!!${plain}"
echo ""
echo -e "${green}登录用户名admin密码123456请进后台自行修改${plain}"
echo ""
echo -e "${green}Web 界面访问地址https://${domain}:15268${plain}"
echo ""
echo -e "${green}若要登录前端网页使用【订阅转换】,请直接复制以上地址${plain}"