- Organized 252 files across project - Root directory: 187 → 2 files (98.9% reduction) - Moved configuration guides to docs/04-configuration/ - Moved troubleshooting guides to docs/09-troubleshooting/ - Moved quick start guides to docs/01-getting-started/ - Moved reports to reports/ directory - Archived temporary files - Generated comprehensive reports and documentation - Created maintenance scripts and guides All files organized according to established standards.
45 lines
1.4 KiB
Bash
Executable File
45 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
# Quick verification of tunnel routing
|
|
|
|
echo "=== Testing Tunnel Endpoints ==="
|
|
echo ""
|
|
|
|
test_url() {
|
|
local url=$1
|
|
local name=$2
|
|
echo -n "Testing $name... "
|
|
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" "$url" 2>&1)
|
|
if [[ "$HTTP_CODE" =~ ^[2] ]]; then
|
|
echo "✓ OK ($HTTP_CODE)"
|
|
return 0
|
|
else
|
|
echo "✗ Failed ($HTTP_CODE)"
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
test_rpc() {
|
|
local url=$1
|
|
local name=$2
|
|
echo -n "Testing $name... "
|
|
RESPONSE=$(curl -s -X POST "$url" -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' 2>&1)
|
|
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" -X POST "$url" -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' 2>&1)
|
|
if [[ "$HTTP_CODE" =~ ^[2] ]] && echo "$RESPONSE" | grep -q "result"; then
|
|
echo "✓ OK ($HTTP_CODE)"
|
|
return 0
|
|
else
|
|
echo "✗ Failed ($HTTP_CODE)"
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
test_url "https://explorer.d-bis.org/api/v2/stats" "Explorer"
|
|
test_rpc "https://rpc-http-pub.d-bis.org" "RPC Public"
|
|
test_rpc "https://rpc-http-prv.d-bis.org" "RPC Private"
|
|
test_url "https://dbis-admin.d-bis.org" "DBIS Admin"
|
|
test_url "https://dbis-api.d-bis.org/health" "DBIS API"
|
|
test_url "https://mim4u.org" "MIM4U"
|
|
|
|
echo ""
|
|
echo "=== Verification Complete ==="
|