Files
proxmox/scripts/archive/small-scripts/add-blockscout-nginx-route.sh.bak
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

25 lines
784 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Add blockscout.defi-oracle.io to Nginx configuration on VMID 105
PROXMOX_HOST="192.168.11.12"
NGINX_VMID=105
ssh -o ConnectTimeout=5 -o StrictHostKeyChecking=no root@${PROXMOX_HOST} "pct exec $NGINX_VMID -- bash" << 'NGINX_EOF'
cat >> /data/nginx/custom/http.conf << 'CONFIG_EOF'
# Blockscout (defi-oracle.io domain)
server {
listen 80;
server_name blockscout.defi-oracle.io;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
location / {
proxy_pass http://192.168.11.140:80;
}
}
CONFIG_EOF
nginx -t && systemctl restart npm && echo "✓ Nginx configuration updated"
NGINX_EOF