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>
63 lines
1.8 KiB
Bash
Executable File
63 lines
1.8 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
|
|
|
|
|
|
# Quick configuration script to update .env with Proxmox credentials
|
|
|
|
set -e
|
|
|
|
HOST="${1:-192.168.11.10}"
|
|
USER="${2:-root@pam}"
|
|
TOKEN_NAME="${3:-mcp-server}"
|
|
|
|
echo "Configuring .env file with Proxmox connection..."
|
|
echo "Host: $HOST"
|
|
echo "User: $USER"
|
|
echo "Token Name: $TOKEN_NAME"
|
|
echo ""
|
|
|
|
# Update .env file
|
|
cat > "$HOME/.env" << EOF
|
|
# Proxmox MCP Server Configuration
|
|
# Configured with: $HOST
|
|
|
|
# Proxmox Configuration
|
|
PROXMOX_HOST=$HOST
|
|
PROXMOX_USER=$USER
|
|
PROXMOX_TOKEN_NAME=$TOKEN_NAME
|
|
PROXMOX_TOKEN_VALUE=your-token-secret-here
|
|
|
|
# Security Settings
|
|
# ⚠️ WARNING: Setting PROXMOX_ALLOW_ELEVATED=true enables DESTRUCTIVE operations
|
|
PROXMOX_ALLOW_ELEVATED=false
|
|
|
|
# Optional Settings
|
|
PROXMOX_PORT=8006
|
|
EOF
|
|
|
|
echo "✅ .env file updated!"
|
|
echo ""
|
|
echo "⚠️ IMPORTANT: You need to create the API token and add it to .env"
|
|
echo ""
|
|
echo "Option 1: Via Proxmox Web UI (Recommended)"
|
|
echo " 1. Go to: https://$HOST:8006"
|
|
echo " 2. Navigate to: Datacenter → Permissions → API Tokens"
|
|
echo " 3. Click 'Add' and create token: $TOKEN_NAME"
|
|
echo " 4. Copy the secret value"
|
|
echo " 5. Update ~/.env: PROXMOX_TOKEN_VALUE=<paste-secret-here>"
|
|
echo ""
|
|
echo "Option 2: Try automated token creation"
|
|
echo " ./create-proxmox-token.sh $HOST $USER <password> $TOKEN_NAME"
|
|
echo ""
|
|
echo "Current .env contents:"
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
cat "$HOME/.env" | grep -v "TOKEN_VALUE="
|
|
echo "PROXMOX_TOKEN_VALUE=<needs-to-be-added>"
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
|