Files
proxmox/scripts/cloudflare-tunnels/RUN_ME_AFTER_DOWNLOAD.sh
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands
- CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround
- CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check
- NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere
- MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates
- LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 15:46:57 -08:00

49 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Load IP configuration
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
source "${PROJECT_ROOT}/config/ip-addresses.conf" 2>/dev/null || true
# Run this AFTER downloading credentials from Cloudflare Dashboard
set -e
echo "=== Cloudflare Tunnel Setup ==="
echo ""
# Check for credentials files
MISSING=0
for file in credentials-ml110.json credentials-r630-01.json credentials-r630-02.json; do
if [ ! -f "$file" ]; then
echo "❌ Missing: $file"
MISSING=1
else
echo "✅ Found: $file"
fi
done
echo ""
if [ $MISSING -eq 1 ]; then
echo "Please download credentials from Cloudflare Dashboard first!"
echo "See: DOWNLOAD_CREDENTIALS_NOW.md"
exit 1
fi
echo "Setting up credentials..."
./scripts/setup-credentials-auto.sh
echo ""
echo "Starting services..."
ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} "pct exec 102 -- systemctl start cloudflared-ml110 cloudflared-r630-01 cloudflared-r630-02"
ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} "pct exec 102 -- systemctl enable cloudflared-*"
echo ""
echo "✅ Setup complete!"
echo ""
echo "Check status:"
echo " ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} 'pct exec 102 -- systemctl status cloudflared-*'"