Caution: This feature is for advanced users, running multiple nodes.
A single server instance of RTL can now be used to connect with multiple nodes on the same network. Multi-Node configuration requires the following:
- In case of LND node implementation, update lnd.conf for the node to enable remote connections and restart LND
- Configure 'RTL-Config.json' with individual entries for each node
- Restart RTL
- Run RTL and switch nodes live via dropdown on the menubar
This step is only required to configure the nodes, which will be remotely connected with RTL.
- A static IP address must be assigned to the device running LND
admin.macaroonfor this node must be transferred to the device on which you need to run RTL- Add this setting your lnd.conf file under the [Application Options] section:
restlisten=<ip address of the device running LND>:8080 - Restart LND
- Rename the file
Sample-RTL-Config.jsontoRTL-Config.jsonlocated at./RTL. - Set
multiPassto the preferred password. This password will be used to authenticate the user for RTL. Once authenticated, the user will be able to access all the nodes configured in the json file - Set the
portto the preferred port number over which to run RTL - Set the
defaultNodeIndexto configure the default start up node at server restart SSOsection can be used for single-sign-on from applications like BTCPayserver. If using RTL as a stand-alone app to connect with the nodes, keep thertlSSO=0and ignore the rest ofSSOsection.nodessection is a json array, with each element of the array representing the specific parameters for the LND node to connect with.indexmust be a number and start with 1. This number must be unique for each node in the array. For each element, two items need to be configured for each node on the network (macaroonPathandlnServerUrl).macaroonPathshould be set to the local path of the folder containingadmin.macaroonfile for each node. Each node must have a different folder for theadmin.macaroonon the RTL server.swapMacaroonPathshould be set to the local path of the folder containingloop.macaroonfile for loop.boltzMacaroonPathshould be set to the local path of the folder containingadmin.macaroonfile for boltz swaps.lnServerUrlmust be set to the service url for LND/Core Lightining REST APIs for each node, with the unique ip address of the node hosting LND/Core Lightning e.g. https://192.168.0.1:8080 OR https://192.168.0.1:3001. In this case the ip address of the node hosting LND/Core Lightning is '192.168.0.1'swapServerUrlmust be set to the swap service url. e.g. https://localhost:8081.boltzServerUrlmust be set to the boltz service url. e.g. https://localhost:9003.configPathandbitcoindConfigPathare optional parameters which can be set only if the RTL is running locally on the same node. Else it can be set to "" or removed from the conf file all together.lnApiPasswordis mandatory in the ln implementation is ECL and configPath is missing. It is used to provide password for API authentication. It will be ignored in other ln implementations.
The application should be accessed, with the ip and port combination, as earlier. The user needs to enter the password set with the multiPass variable to authenticate. Once authenticated, the application will load the node with index configured with defaultNodeIndex. The other nodes configured with the file, can be accessed via the dropdown in the side menu.
Thats all for now. The application is currently designed for a simple setup to access and manage multiple nodes. More features like an advanced multi-node dashboard can be developed in the future, depending upon the interest from the community.