Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- 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>
55 lines
2.0 KiB
Bash
Executable File
55 lines
2.0 KiB
Bash
Executable File
#!/bin/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
|
|
|
|
|
|
# Alternative fix script - to be run from within Proxmox network
|
|
# Or via SSH tunnel
|
|
|
|
set -e
|
|
|
|
PROXMOX_HOST="${PROXMOX_HOST:-192.168.11.12}"
|
|
VMID="${VMID:-102}"
|
|
TUNNEL_ID="10ab22da-8ea3-4e2e-a896-27ece2211a05"
|
|
NGINX_TARGET="${IP_NGINX_LEGACY:-192.168.11.26}:80"
|
|
|
|
echo "═══════════════════════════════════════════════════════════"
|
|
echo " Fix Shared Cloudflare Tunnel (Remote Method)"
|
|
echo "═══════════════════════════════════════════════════════════"
|
|
echo ""
|
|
echo "This script can be run:"
|
|
echo " 1. From a machine on ${NETWORK_192_168_11_0:-192.168.11.0}/24 network"
|
|
echo " 2. Via SSH tunnel (after running setup_ssh_tunnel.sh)"
|
|
echo " 3. Directly on Proxmox host"
|
|
echo ""
|
|
echo "Tunnel ID: ${TUNNEL_ID}"
|
|
echo "Target: http://${NGINX_TARGET}"
|
|
echo "Container: VMID ${VMID} on ${PROXMOX_HOST}"
|
|
echo ""
|
|
|
|
# Check connection
|
|
echo "Testing connection..."
|
|
if ssh -o ConnectTimeout=5 -o StrictHostKeyChecking=no root@${PROXMOX_HOST} "pct exec ${VMID} -- echo 'Connected'" 2>/dev/null; then
|
|
echo "✅ Connection successful"
|
|
echo ""
|
|
|
|
# Run the original fix script logic
|
|
exec ./fix-shared-tunnel.sh
|
|
else
|
|
echo "❌ Cannot connect"
|
|
echo ""
|
|
echo "If running via SSH tunnel, ensure:"
|
|
echo " 1. SSH tunnel is active: ./setup_ssh_tunnel.sh"
|
|
echo " 2. Use: PROXMOX_HOST=localhost ./fix-shared-tunnel-remote.sh"
|
|
echo ""
|
|
echo "If running from Proxmox network, ensure:"
|
|
echo " 1. You're on ${NETWORK_192_168_11_0:-192.168.11.0}/24 network"
|
|
echo " 2. SSH access to ${PROXMOX_HOST} is configured"
|
|
echo ""
|
|
exit 1
|
|
fi
|