swapper-org / NodeChain

Nodechain is a service that allows you to create nodes on a blockchain and connect to them natively through APIs. The goal is to allow the user to build their own nodes natively without having to rely on external services.
MIT License
7 stars 5 forks source link

Allow to choose an URL for the connector #132

Closed phoenix-web3 closed 2 years ago

phoenix-web3 commented 2 years ago

Issue

At this moment the startup script has every connector URL hardcoded as http://localhost:{port}/admin/{endpoint} We need to change this localhost to allow sysadmins to build the connector on one server and the APIs on another server.

Use case

I build the connector part on http://server-one.com and I build BTC API on http://server-two.com. Once we start BTC API, the script will make a request to localhost but the connector is not there.

Linked issues

133