diff --git a/scripts/config-warpgate-alpine.sh b/scripts/config-warpgate-alpine.sh index b574bcf..38595fa 100644 --- a/scripts/config-warpgate-alpine.sh +++ b/scripts/config-warpgate-alpine.sh @@ -24,8 +24,9 @@ fi # 1. CONFIGURATION # ========================================== -# Netbird Setup Key +# Netbird NETBIRD_SETUP_KEY="7369BE4D-C485-4339-A7CA-C245FD95E857" +NETBIRD_MANAGEMENT_URL="https://webway.shamanlanding.org:443" # Mihomo Version (Alpha) MIHOMO_URL="https://github.com/vernesong/mihomo/releases/download/Prerelease-Alpha/mihomo-linux-amd64-alpha-smart-ec7f445.gz" @@ -78,7 +79,7 @@ echo ">>> Connecting Netbird..." # Проверяем статус. Если не подключен — подключаем. if ! netbird status | grep -q "Connected"; then if [ -n "$NETBIRD_SETUP_KEY" ] && [ "$NETBIRD_SETUP_KEY" != "YOUR_NETBIRD_SETUP_KEY_HERE" ]; then - netbird up --setup-key "$NETBIRD_SETUP_KEY" --allow-server-ssh --enable-ssh-root + netbird up --management-url "$NETBIRD_MANAGEMENT_URL" https://webway.shamanlanding.org:443 --setup-key "$NETBIRD_SETUP_KEY" --allow-server-ssh --enable-ssh-root else echo "WARNING: Netbird Setup Key not set. Run manual setup later." fi diff --git a/scripts/config-warpgate-debian.sh b/scripts/config-warpgate-debian.sh index d461446..ea49831 100644 --- a/scripts/config-warpgate-debian.sh +++ b/scripts/config-warpgate-debian.sh @@ -19,8 +19,9 @@ fi # 1. CONFIGURATION # ========================================== -# Netbird Setup Key (Get from Dashboard) +# Netbird NETBIRD_SETUP_KEY="7369BE4D-C485-4339-A7CA-C245FD95E857" +NETBIRD_MANAGEMENT_URL="https://webway.shamanlanding.org:443" # Mihomo Version (Direct Link) # Используем Alpha версию как в твоем мануале. Для Stable ищи release tag. @@ -67,7 +68,7 @@ fi echo ">>> Connecting Netbird..." if ! netbird status | grep -q "Connected"; then if [ "$NETBIRD_SETUP_KEY" != "YOUR_NETBIRD_SETUP_KEY_HERE" ]; then - netbird up --setup-key "$NETBIRD_SETUP_KEY" --allow-server-ssh --enable-ssh-root + netbird up --management-url "$NETBIRD_MANAGEMENT_URL" --setup-key "$NETBIRD_SETUP_KEY" --allow-server-ssh --enable-ssh-root else echo "WARNING: Netbird Setup Key not set. Run 'netbird up --setup-key KEY --allow-server-ssh --enable-ssh-root' manually later." fi