Add router groups and refine hub dashboard

This commit is contained in:
kzolotarev95 committed 2026-10-06 06:59:17 +04:00
1 parent 4e609ff69c
commit 139de2a20b
7 files changed
+412 -46

No files matched your search

+4 -3
View File
@@ -3,7 +3,8 @@ set -u
APP_NAME="OpenWrt Remote Hub"
INSTALLER_VERSION="2026-08-17-https-bootstrap-v1"
RAW_BASE="${RAW_URL:-https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main}"
RAW_BASE="${RAW_URL:-https://hub.freedev.app}"
XRAY_INSTALL_SCRIPT_URL="${XRAY_INSTALL_SCRIPT_URL:-https://hub.freedev.app/xray-install/install-release.sh}"
STATE_DIR="${OWRT_REMOTE_STATE_DIR:-/var/lib/owrt-remote}"
HUB_LOGIN="${HUB_LOGIN:-admin}"
HUB_PASSWORD="${HUB_PASSWORD:-admin}"
@@ -93,7 +94,7 @@ install_xray_binary() {
return
fi
info "Ставлю Xray на VPS..."
if ! $SUDO bash -c "$(curl -fsSL https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install; then
if ! $SUDO bash -c "$(curl -fsSL "$XRAY_INSTALL_SCRIPT_URL")" @ install; then
warn "Xray не поставился автоматически. Панель Hub все равно будет работать, Xray можно поставить позже."
fi
}
@@ -272,7 +273,7 @@ print_result() {
if [ "${HTTPS_OK:-0}" != "1" ]; then
info ""
info "Включить HTTPS вручную:"
info ' curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/enable-https.sh?v=$(date +%s)" | sudo sh -s -- '"$host"
info ' curl -fsSL "https://hub.freedev.app/vps/enable-https.sh?v=$(date +%s)" | sudo sh -s -- '"$host"
fi
info "============================================================"
}