Заменил ссылки на свой Gitea
This commit is contained in:
@@ -21,7 +21,7 @@ assets/
|
|||||||
```
|
```
|
||||||
|
|
||||||
Scripts download assets at install time from this repo's raw GitHub URL
|
Scripts download assets at install time from this repo's raw GitHub URL
|
||||||
(`https://git.pub38.com/Evgen/3x-ui-pro/main/...`) — changes take
|
(`https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/...`) — changes take
|
||||||
effect on servers only after push to `main`.
|
effect on servers only after push to `main`.
|
||||||
|
|
||||||
## What x-ui-latest.sh does
|
## What x-ui-latest.sh does
|
||||||
@@ -82,14 +82,14 @@ IP = `api/st/getip`. Speedtest locations use `limit_conn`, not `limit_req`
|
|||||||
## Running
|
## Running
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-latest.sh) \
|
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/x-ui-latest.sh) \
|
||||||
-subdomain panel.example.com -reality_domain r.example.com
|
-subdomain panel.example.com -reality_domain r.example.com
|
||||||
```
|
```
|
||||||
|
|
||||||
Patch an existing install (re-reads ports/paths from x-ui.db and nginx):
|
Patch an existing install (re-reads ports/paths from x-ui.db and nginx):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-patch.sh)
|
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/x-ui-patch.sh)
|
||||||
```
|
```
|
||||||
|
|
||||||
Add AdGuard Home on the panel domain (standalone, re-run safe, `-uninstall y`
|
Add AdGuard Home on the panel domain (standalone, re-run safe, `-uninstall y`
|
||||||
@@ -99,5 +99,5 @@ to remove). AGH binds localhost only; nginx bridges `/dns-query` (DoH,
|
|||||||
regenerate the vhost and drop that include — re-run this script after them:
|
regenerate the vhost and drop that include — re-run this script after them:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-adguard.sh)
|
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/x-ui-adguard.sh)
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
**Шаг 1 — скачать скрипт**
|
**Шаг 1 — скачать скрипт**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget -qO x-ui-latest.sh https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-latest.sh
|
wget -qO x-ui-latest.sh https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/x-ui-latest.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
**Шаг 2 — запустить**
|
**Шаг 2 — запустить**
|
||||||
@@ -46,7 +46,7 @@ bash x-ui-latest.sh
|
|||||||
Применить текущие фиксы к существующей установке (без изменений БД):
|
Применить текущие фиксы к существующей установке (без изменений БД):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-patch.sh)
|
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/x-ui-patch.sh)
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -59,7 +59,7 @@ bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-patch.sh)
|
|||||||
- **Админка** — на случайном пути `/adg-<random>/` (логин и пароль выводит скрипт)
|
- **Админка** — на случайном пути `/adg-<random>/` (логин и пароль выводит скрипт)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-adguard.sh)
|
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/x-ui-adguard.sh)
|
||||||
```
|
```
|
||||||
|
|
||||||
Повторный запуск безопасен (настройки и пароль сохраняются). После установщика или патча запустите скрипт ещё раз — они перезаписывают конфиг nginx.
|
Повторный запуск безопасен (настройки и пароль сохраняются). После установщика или патча запустите скрипт ещё раз — они перезаписывают конфиг nginx.
|
||||||
@@ -67,7 +67,7 @@ bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-adguard.sh)
|
|||||||
Удаление:
|
Удаление:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-adguard.sh) -uninstall y
|
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/x-ui-adguard.sh) -uninstall y
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -109,7 +109,7 @@ bash x-ui-latest.sh -uninstall y
|
|||||||
**Установить скрипт бэкапа**
|
**Установить скрипт бэкапа**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget -qO /usr/local/bin/x-ui-backup https://git.pub38.com/Evgen/3x-ui-pro/main/assets/backup/x-ui-backup.sh
|
wget -qO /usr/local/bin/x-ui-backup https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/assets/backup/x-ui-backup.sh
|
||||||
chmod +x /usr/local/bin/x-ui-backup
|
chmod +x /usr/local/bin/x-ui-backup
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -31,7 +31,7 @@ Automated installer for the [3x-ui](https://github.com/MHSanaei/3x-ui) panel wit
|
|||||||
**Step 1 — download the script**
|
**Step 1 — download the script**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget -qO x-ui-latest.sh https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-latest.sh
|
wget -qO x-ui-latest.sh https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/x-ui-latest.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
**Step 2 — run it**
|
**Step 2 — run it**
|
||||||
@@ -46,7 +46,7 @@ bash x-ui-latest.sh -install y
|
|||||||
Apply current fixes to an existing installation (no DB changes):
|
Apply current fixes to an existing installation (no DB changes):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-patch.sh)
|
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/x-ui-patch.sh)
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -59,7 +59,7 @@ Installs [AdGuard Home](https://github.com/AdguardTeam/AdGuardHome) on the panel
|
|||||||
- **Admin UI** — at a random `/adg-<random>/` path (login and password are printed by the script)
|
- **Admin UI** — at a random `/adg-<random>/` path (login and password are printed by the script)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-adguard.sh)
|
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/x-ui-adguard.sh)
|
||||||
```
|
```
|
||||||
|
|
||||||
Re-running is safe (settings and password are kept). After the installer or the patch, run this script again — they rewrite the nginx config.
|
Re-running is safe (settings and password are kept). After the installer or the patch, run this script again — they rewrite the nginx config.
|
||||||
@@ -67,7 +67,7 @@ Re-running is safe (settings and password are kept). After the installer or the
|
|||||||
Uninstall:
|
Uninstall:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-adguard.sh) -uninstall y
|
bash <(curl -fsSL https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/x-ui-adguard.sh) -uninstall y
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -108,7 +108,7 @@ The import link is printed by the script after installation.
|
|||||||
**Install the backup script**
|
**Install the backup script**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget -qO /usr/local/bin/x-ui-backup https://git.pub38.com/Evgen/3x-ui-pro/main/assets/backup/x-ui-backup.sh
|
wget -qO /usr/local/bin/x-ui-backup https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/assets/backup/x-ui-backup.sh
|
||||||
chmod +x /usr/local/bin/x-ui-backup
|
chmod +x /usr/local/bin/x-ui-backup
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@ check_cpu
|
|||||||
|
|
||||||
# ─── Constants ───────────────────────────────────────────────────────────────
|
# ─── Constants ───────────────────────────────────────────────────────────────
|
||||||
XUIDB="/etc/x-ui/x-ui.db"
|
XUIDB="/etc/x-ui/x-ui.db"
|
||||||
GITHUB_RAW="https://git.pub38.com/Evgen/3x-ui-pro/main"
|
GITHUB_RAW="https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main"
|
||||||
FAKE_SITE_COUNT=50
|
FAKE_SITE_COUNT=50
|
||||||
|
|
||||||
# ─── Default argument values ─────────────────────────────────────────────────
|
# ─── Default argument values ─────────────────────────────────────────────────
|
||||||
|
|||||||
+2
-2
@@ -10,12 +10,12 @@
|
|||||||
# 6. Replaces fake cover site with a current one
|
# 6. Replaces fake cover site with a current one
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# wget -qO x-ui-patch.sh https://git.pub38.com/Evgen/3x-ui-pro/main/x-ui-patch.sh
|
# wget -qO x-ui-patch.sh https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main/x-ui-patch.sh
|
||||||
# bash x-ui-patch.sh
|
# bash x-ui-patch.sh
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
|
|
||||||
XUIDB="/etc/x-ui/x-ui.db"
|
XUIDB="/etc/x-ui/x-ui.db"
|
||||||
GITHUB_RAW="https://git.pub38.com/Evgen/3x-ui-pro/main"
|
GITHUB_RAW="https://git.pub38.com/Evgen/3x-ui-pro/raw/branch/main"
|
||||||
FAKE_SITE_COUNT=50
|
FAKE_SITE_COUNT=50
|
||||||
LIB_DIR="/usr/local/lib/3x-ui-pro"
|
LIB_DIR="/usr/local/lib/3x-ui-pro"
|
||||||
DIAG_ROOT="/var/www/diagnostics"
|
DIAG_ROOT="/var/www/diagnostics"
|
||||||
|
|||||||
Reference in New Issue
Block a user