fix: run VLESS Reality on Xray instead of sing-box for v2rayN
sing-box Hy2 stays on 8443+; port 443 VLESS uses Xray which pairs reliably with v2rayN/Xray-core clients. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+11
-4
@@ -184,9 +184,15 @@ python3 -m venv "$ROOT_DIR/panel/venv"
|
||||
log "初始化节点数据库 ..."
|
||||
"$ROOT_DIR/panel/venv/bin/python" "$ROOT_DIR/panel/init_db.py"
|
||||
|
||||
log "生成 sing-box 服务端配置 ..."
|
||||
log "生成 sing-box 服务端配置 (Hysteria2) ..."
|
||||
python3 "$ROOT_DIR/scripts/render-server.py"
|
||||
|
||||
log "安装 Xray (VLESS Reality 443) ..."
|
||||
bash -c "$(curl -fsSL https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install
|
||||
|
||||
log "生成 Xray 服务端配置 ..."
|
||||
python3 "$ROOT_DIR/scripts/render-xray.py"
|
||||
|
||||
log "创建 sing-box systemd 服务 ..."
|
||||
cat > /etc/systemd/system/sing-box.service <<'UNIT'
|
||||
[Unit]
|
||||
@@ -209,7 +215,7 @@ log "创建管理面板 systemd 服务 ..."
|
||||
cat > /etc/systemd/system/jiedian-panel.service <<UNIT
|
||||
[Unit]
|
||||
Description=jiedian admin panel
|
||||
After=network.target sing-box.service
|
||||
After=network.target xray.service sing-box.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
@@ -226,7 +232,7 @@ WantedBy=multi-user.target
|
||||
UNIT
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl enable sing-box jiedian-panel
|
||||
systemctl enable xray sing-box jiedian-panel
|
||||
|
||||
log "注册证书续期 reload 命令 ..."
|
||||
/root/.acme.sh/acme.sh --install-cert -d "$DOMAIN" \
|
||||
@@ -235,7 +241,7 @@ log "注册证书续期 reload 命令 ..."
|
||||
--reloadcmd "systemctl restart sing-box && systemctl reload nginx" \
|
||||
|| log "acme reloadcmd 注册失败,可忽略"
|
||||
|
||||
systemctl restart sing-box jiedian-panel
|
||||
systemctl restart xray sing-box jiedian-panel
|
||||
|
||||
log "部署完成!"
|
||||
echo ""
|
||||
@@ -249,5 +255,6 @@ echo ""
|
||||
echo "节点链接请在面板中添加/复制。"
|
||||
echo ""
|
||||
log "sing-box: systemctl status sing-box"
|
||||
log "Xray: systemctl status xray"
|
||||
log "面板: systemctl status jiedian-panel"
|
||||
log "卸载重装: bash scripts/uninstall.sh && bash scripts/install.sh"
|
||||
|
||||
Reference in New Issue
Block a user