Restore GitHub installer links
This commit is contained in:
1 parent
139de2a20b
commit
e24530483c
7 files changed
+21
-21
No files matched your search
@@ -145,7 +145,7 @@ password: admin
|
|||||||
<h3> VPS: поставить Hub, Xray, firewall и HTTPS одной командой</h3>
|
<h3> VPS: поставить Hub, Xray, firewall и HTTPS одной командой</h3>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL "https://hub.freedev.app/vps/install-vps.sh?v=$(date +%s)" | sudo sh
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh?v=$(date +%s)" | sudo sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Установщик спросит:
|
Установщик спросит:
|
||||||
@@ -165,7 +165,7 @@ hub.example.com
|
|||||||
<h3> OpenWrt: поставить Remote Hub на роутер</h3>
|
<h3> OpenWrt: поставить Remote Hub на роутер</h3>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
wget -O - "https://hub.freedev.app/install.sh?v=$(date +%s)" | sh
|
wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/install.sh?v=$(date +%s)" | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Проверка на роутере:
|
Проверка на роутере:
|
||||||
@@ -426,7 +426,7 @@ flowchart LR
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL "https://hub.freedev.app/vps/install-vps.sh?v=$(date +%s)" | sudo env RESET_LOGIN=0 sh
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh?v=$(date +%s)" | sudo env RESET_LOGIN=0 sh
|
||||||
```
|
```
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
@@ -436,7 +436,7 @@ curl -fsSL "https://hub.freedev.app/vps/install-vps.sh?v=$(date +%s)" | sudo env
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL "https://hub.freedev.app/vps/enable-https.sh?v=$(date +%s)" | sudo sh -s -- YOUR_VPS_IP
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/enable-https.sh?v=$(date +%s)" | sudo sh -s -- YOUR_VPS_IP
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@@ -482,7 +482,7 @@ Hub работает внутри на <code>80</code> и <code>8088</code>, а
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL "https://hub.freedev.app/vps/enable-https.sh?v=$(date +%s)" | sudo sh -s -- YOUR_VPS_IP
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/enable-https.sh?v=$(date +%s)" | sudo sh -s -- YOUR_VPS_IP
|
||||||
```
|
```
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
@@ -492,7 +492,7 @@ curl -fsSL "https://hub.freedev.app/vps/enable-https.sh?v=$(date +%s)" | sudo sh
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL "https://hub.freedev.app/vps/enable-https.sh?v=$(date +%s)" | sudo EMAIL="you@example.com" sh -s -- hub.example.com
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/enable-https.sh?v=$(date +%s)" | sudo EMAIL="you@example.com" sh -s -- hub.example.com
|
||||||
```
|
```
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
@@ -719,7 +719,7 @@ sudo ss -lntp | grep -E ':(80|443|8088)'
|
|||||||
<summary align="center"><b> Удалить Hub с VPS полностью</b></summary>
|
<summary align="center"><b> Удалить Hub с VPS полностью</b></summary>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL "https://hub.freedev.app/vps/uninstall-vps.sh?v=$(date +%s)" | sudo sh
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" | sudo sh
|
||||||
```
|
```
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
@@ -743,7 +743,7 @@ nginx-конфиг HTTPS, certbot renewal hook и старые TLS override-фа
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL "https://hub.freedev.app/vps/uninstall-vps.sh?v=$(date +%s)" | sudo env PURGE=0 sh
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" | sudo env PURGE=0 sh
|
||||||
```
|
```
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
@@ -753,7 +753,7 @@ curl -fsSL "https://hub.freedev.app/vps/uninstall-vps.sh?v=$(date +%s)" | sudo e
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL "https://hub.freedev.app/vps/uninstall-vps.sh?v=$(date +%s)" | sudo env REMOVE_XRAY=1 sh
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" | sudo env REMOVE_XRAY=1 sh
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@@ -762,7 +762,7 @@ curl -fsSL "https://hub.freedev.app/vps/uninstall-vps.sh?v=$(date +%s)" | sudo e
|
|||||||
<summary align="center"><b> Удалить агент с OpenWrt полностью</b></summary>
|
<summary align="center"><b> Удалить агент с OpenWrt полностью</b></summary>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
wget -O - "https://hub.freedev.app/uninstall.sh?v=$(date +%s)" | PURGE=1 sh
|
wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/uninstall.sh?v=$(date +%s)" | PURGE=1 sh
|
||||||
```
|
```
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
@@ -787,7 +787,7 @@ rpcd ACL<br>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
wget -O - "https://hub.freedev.app/uninstall.sh?v=$(date +%s)" | sh
|
wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/uninstall.sh?v=$(date +%s)" | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${PATH:-}"
|
|||||||
|
|
||||||
CONFIG="owrtremote"
|
CONFIG="owrtremote"
|
||||||
SECTION="main"
|
SECTION="main"
|
||||||
XRAY_RELEASE_BASE_URL="${XRAY_RELEASE_BASE_URL:-https://hub.freedev.app/xray-core/releases/latest/download}"
|
XRAY_RELEASE_BASE_URL="${XRAY_RELEASE_BASE_URL:-https://github.com/XTLS/Xray-core/releases/latest/download}"
|
||||||
|
|
||||||
log() {
|
log() {
|
||||||
printf '%s\n' "$*" >&2
|
printf '%s\n' "$*" >&2
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ set -eu
|
|||||||
|
|
||||||
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${PATH:-}"
|
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${PATH:-}"
|
||||||
|
|
||||||
RAW_URL="${RAW_URL:-https://hub.freedev.app}"
|
RAW_URL="${RAW_URL:-https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main}"
|
||||||
ROOT="${ROOT:-/}"
|
ROOT="${ROOT:-/}"
|
||||||
SCRIPT_DIR="$(CDPATH= cd "$(dirname "$0")" 2>/dev/null && pwd)"
|
SCRIPT_DIR="$(CDPATH= cd "$(dirname "$0")" 2>/dev/null && pwd)"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
set -u
|
set -u
|
||||||
|
|
||||||
APP_NAME="OpenWrt Remote Hub"
|
APP_NAME="OpenWrt Remote Hub"
|
||||||
RAW_BASE="${RAW_URL:-https://hub.freedev.app}"
|
RAW_BASE="${RAW_URL:-https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main}"
|
||||||
STATE_DIR="${OWRT_REMOTE_STATE_DIR:-/var/lib/owrt-remote}"
|
STATE_DIR="${OWRT_REMOTE_STATE_DIR:-/var/lib/owrt-remote}"
|
||||||
ACME_WEBROOT="$STATE_DIR/acme-webroot"
|
ACME_WEBROOT="$STATE_DIR/acme-webroot"
|
||||||
HOSTNAME_ARG="${1:-${HTTPS_HOST:-}}"
|
HOSTNAME_ARG="${1:-${HTTPS_HOST:-}}"
|
||||||
|
|||||||
+3
-3
@@ -3,8 +3,8 @@ set -u
|
|||||||
|
|
||||||
APP_NAME="OpenWrt Remote Hub"
|
APP_NAME="OpenWrt Remote Hub"
|
||||||
INSTALLER_VERSION="2026-08-17-https-bootstrap-v1"
|
INSTALLER_VERSION="2026-08-17-https-bootstrap-v1"
|
||||||
RAW_BASE="${RAW_URL:-https://hub.freedev.app}"
|
RAW_BASE="${RAW_URL:-https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main}"
|
||||||
XRAY_INSTALL_SCRIPT_URL="${XRAY_INSTALL_SCRIPT_URL:-https://hub.freedev.app/xray-install/install-release.sh}"
|
XRAY_INSTALL_SCRIPT_URL="${XRAY_INSTALL_SCRIPT_URL:-https://github.com/XTLS/Xray-install/raw/main/install-release.sh}"
|
||||||
STATE_DIR="${OWRT_REMOTE_STATE_DIR:-/var/lib/owrt-remote}"
|
STATE_DIR="${OWRT_REMOTE_STATE_DIR:-/var/lib/owrt-remote}"
|
||||||
HUB_LOGIN="${HUB_LOGIN:-admin}"
|
HUB_LOGIN="${HUB_LOGIN:-admin}"
|
||||||
HUB_PASSWORD="${HUB_PASSWORD:-admin}"
|
HUB_PASSWORD="${HUB_PASSWORD:-admin}"
|
||||||
@@ -273,7 +273,7 @@ print_result() {
|
|||||||
if [ "${HTTPS_OK:-0}" != "1" ]; then
|
if [ "${HTTPS_OK:-0}" != "1" ]; then
|
||||||
info ""
|
info ""
|
||||||
info "Включить HTTPS вручную:"
|
info "Включить HTTPS вручную:"
|
||||||
info ' curl -fsSL "https://hub.freedev.app/vps/enable-https.sh?v=$(date +%s)" | sudo sh -s -- '"$host"
|
info ' curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/enable-https.sh?v=$(date +%s)" | sudo sh -s -- '"$host"
|
||||||
fi
|
fi
|
||||||
info "============================================================"
|
info "============================================================"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ except Exception:
|
|||||||
|
|
||||||
|
|
||||||
APP_NAME = "OpenWrt Remote Hub"
|
APP_NAME = "OpenWrt Remote Hub"
|
||||||
RAW_REPO_BASE = os.environ.get("RAW_REPO_BASE", "https://hub.freedev.app").rstrip("/")
|
RAW_REPO_BASE = os.environ.get("RAW_REPO_BASE", "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main").rstrip("/")
|
||||||
APP_DIR = Path(__file__).resolve().parent
|
APP_DIR = Path(__file__).resolve().parent
|
||||||
STATIC_DIR = APP_DIR / "static"
|
STATIC_DIR = APP_DIR / "static"
|
||||||
BRAND_THEME_COLOR = "#24192f"
|
BRAND_THEME_COLOR = "#24192f"
|
||||||
@@ -4279,7 +4279,7 @@ def vps_terminal_commands(host):
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
"title": "Обновить Hub",
|
"title": "Обновить Hub",
|
||||||
"note": "Свежий hub.py с hub.freedev.app; обновление уходит в отдельный systemd-run",
|
"note": "Свежий hub.py из GitHub; обновление уходит в отдельный systemd-run",
|
||||||
"command": f'u=owrt-remote-selfupdate-$(date +%s); systemd-run --unit=\"$u\" --collect /bin/sh -lc \'v=$(date +%s); curl -fsSL -o /opt/owrt-remote/owrt-remote-hub.py \"{RAW_REPO_BASE}/vps/owrt-remote-hub.py?v=$v\" && chmod +x /opt/owrt-remote/owrt-remote-hub.py && systemctl restart owrt-remote\' && echo \"$u started; reopen VPS terminal in 3-5 sec\"',
|
"command": f'u=owrt-remote-selfupdate-$(date +%s); systemd-run --unit=\"$u\" --collect /bin/sh -lc \'v=$(date +%s); curl -fsSL -o /opt/owrt-remote/owrt-remote-hub.py \"{RAW_REPO_BASE}/vps/owrt-remote-hub.py?v=$v\" && chmod +x /opt/owrt-remote/owrt-remote-hub.py && systemctl restart owrt-remote\' && echo \"$u started; reopen VPS terminal in 3-5 sec\"',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -4857,7 +4857,7 @@ input,select{{min-width:0;border:1px solid var(--line);border-radius:8px;padding
|
|||||||
</div>
|
</div>
|
||||||
<div class="backupCmd">
|
<div class="backupCmd">
|
||||||
<strong>2. Поднять Hub на новой VPS</strong>
|
<strong>2. Поднять Hub на новой VPS</strong>
|
||||||
<pre>curl -fsSL "https://hub.freedev.app/vps/install-vps.sh?v=$(date +%s)" | sh</pre>
|
<pre>curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh?v=$(date +%s)" | sh</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="backupCmd">
|
<div class="backupCmd">
|
||||||
<strong>3. Перенести архив на новую VPS</strong>
|
<strong>3. Перенести архив на новую VPS</strong>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ APP_NAME="OpenWrt Remote Hub"
|
|||||||
STATE_DIR="${OWRT_REMOTE_STATE_DIR:-/var/lib/owrt-remote}"
|
STATE_DIR="${OWRT_REMOTE_STATE_DIR:-/var/lib/owrt-remote}"
|
||||||
PURGE="${PURGE:-1}"
|
PURGE="${PURGE:-1}"
|
||||||
REMOVE_XRAY="${REMOVE_XRAY:-0}"
|
REMOVE_XRAY="${REMOVE_XRAY:-0}"
|
||||||
XRAY_REMOVE_SCRIPT_URL="${XRAY_REMOVE_SCRIPT_URL:-https://hub.freedev.app/xray-install/install-release.sh}"
|
XRAY_REMOVE_SCRIPT_URL="${XRAY_REMOVE_SCRIPT_URL:-https://github.com/XTLS/Xray-install/raw/main/install-release.sh}"
|
||||||
|
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
SUDO=""
|
SUDO=""
|
||||||
|
|||||||
Reference in new issue
Block a user