Files
proxmox/docs/archive/deployment-reports/CHANGES_APPLIED_DIRECT_ROUTE.md
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

3.7 KiB

Direct Blockscout Route - All Changes Applied

Date: 2026-01-18
Status: All Configuration Files Updated


🎯 Objective

Configure a direct route to Blockscout, bypassing nginx on VMID 5000 to fix 502 Bad Gateway errors.

Route Change:

  • Old: NPMplus → 192.168.11.140:80 (nginx) → 127.0.0.1:4000 (Blockscout)
  • New: NPMplus → 192.168.11.140:4000 (Blockscout directly)

Files Updated

Active Configuration Scripts (Updated)

  1. scripts/nginx-proxy-manager/configure-npmplus-domains.js

    • Changed: explorer.d-bis.orghttp://192.168.11.140:4000
  2. scripts/nginx-proxy-manager/configure-ssl-all-domains.js

    • Changed: explorer.d-bis.orghttp://192.168.11.140:4000
  3. scripts/nginx-proxy-manager/configure-ssl-api.js

    • Changed: explorer.d-bis.orghttp://192.168.11.140:4000

Documentation (Updated)

  1. docs/04-configuration/RPC_ENDPOINTS_MASTER.md

    • Updated port: 80 → 4000
    • Added note: "Direct Route - bypasses nginx"
  2. docs/04-configuration/ALL_VMIDS_ENDPOINTS.md

    • Updated port: 80 → 4000
    • Added note: "Direct Route"
  3. docs/04-configuration/DIRECT_BLOCKSCOUT_ROUTE_UPDATE.md (NEW)

    • Complete documentation of the change
    • Instructions for applying updates

New Scripts Created

  1. scripts/configure-direct-blockscout-route.sh

    • Diagnostic script to check Blockscout configuration
    • Verifies network accessibility
  2. scripts/apply-direct-blockscout-route.sh

    • Main script to apply the direct route configuration
    • Automates NPMplus update
  3. scripts/nginx-proxy-manager/update-explorer-direct-route.js

    • Automated NPMplus configuration update
    • Uses Playwright browser automation
  4. scripts/diagnose-explorer-502-error.sh

    • Comprehensive diagnostic tool for 502 errors

Action Required

Apply NPMplus Configuration

The configuration files are updated, but NPMplus needs to be updated to use the new route.

From a machine that can access NPMplus:

cd /home/intlc/projects/proxmox
./scripts/apply-direct-blockscout-route.sh

Option 2: Manual Update

  1. Log into NPMplus: https://192.168.0.166:81
  2. Navigate to Proxy Hosts
  3. Find explorer.d-bis.org
  4. Update:
    • Forward Host: 192.168.11.140
    • Forward Port: 4000 (change from 80)
  5. Save changes

🔍 Verification Steps

After applying NPMplus update:

  1. Test API:

    curl -I https://explorer.d-bis.org/api/v2/stats
    

    Should return HTTP 200 (not 502).

  2. Check Browser Console:

    • Open https://explorer.d-bis.org
    • Check console for errors
    • Verify API calls succeed
  3. Verify Direct Connection:

    curl -I http://192.168.11.140:4000/api/v2/stats
    

    Should work if Blockscout is network accessible.


📋 Prerequisites Check

Before the direct route will work, ensure:

  • Blockscout service is running
  • Blockscout is listening on port 4000
  • Blockscout is network accessible (0.0.0.0:4000, not just 127.0.0.1:4000)

Run diagnostic:

./scripts/configure-direct-blockscout-route.sh

  • Main Documentation: docs/04-configuration/DIRECT_BLOCKSCOUT_ROUTE_UPDATE.md
  • Master Reference: docs/04-configuration/RPC_ENDPOINTS_MASTER.md
  • All Endpoints: docs/04-configuration/ALL_VMIDS_ENDPOINTS.md

🎉 Summary

All configuration files updated
All documentation updated
Diagnostic and update scripts created
NPMplus configuration update pending (run ./scripts/apply-direct-blockscout-route.sh)


Next Step: Apply the NPMplus configuration update to complete the direct route setup.