cyphernode icon indicating copy to clipboard operation
cyphernode copied to clipboard

Use Core Lightning with TCP instead of Unix socket file

Open Kexkey opened this issue 2 years ago • 2 comments

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.

Kexkey avatar Jun 19 '23 20:06 Kexkey

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.

Kexkey avatar Jan 12 '24 15:01 Kexkey