Add HydraRoute Manager web server — standalone domain management UI

Made-with: Cursor
This commit is contained in:
Андрей Бобырев
2026-04-24 11:37:24 +03:00
commit a63329af81
14 changed files with 833 additions and 0 deletions

13
hydra_update.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
SERVER=$(cat /opt/etc/hydra_server_url 2>/dev/null)
[ -z "$SERVER" ] && echo "❌ /opt/etc/hydra_server_url не задан" && exit 1
HYDRA_DIR="/opt/etc/HydraRoute"
[ ! -d "$HYDRA_DIR" ] && HYDRA_DIR="/opt/etc/hydra"
[ ! -d "$HYDRA_DIR" ] && mkdir -p /opt/etc/HydraRoute && HYDRA_DIR="/opt/etc/HydraRoute"
echo "$(date) Обновляю конфиг с $SERVER..."
curl -sf "$SERVER/hydra/domain.conf" -o "$HYDRA_DIR/domain.conf" && echo "✅ domain.conf" || echo "❌ domain.conf"
curl -sf "$SERVER/hydra/ip.list" -o "$HYDRA_DIR/ip.list" && echo "✅ ip.list" || echo "❌ ip.list"
neo restart 2>/dev/null && echo "✅ neo restarted" || echo "⚠️ neo restart failed"