cyphernode
cyphernode copied to clipboard
Use Core Lightning with TCP instead of Unix socket file
Currently, Cyphernode uses lightning-cli which needs to be local to the Unix socket file created by Core Lightning for its RPC. Unfortunately, this restriction forces CLN clients and CLN server to be on the same machine.
Let's set EXPOSE_TCP and use netcat (or the like) to access CLN remotely (instead of using lightning-cli) so that lightning deployment can be remote to the proxy and more distributed.
Let's use the built-in plugin clnrest for that. It works well. New CLN image (from v23.11.2) will have the required python libs to run it.