SatoshiPortal / cyphernode

Modular Bitcoin full-node microservices API server architecture and utilities toolkit to build scalable, secure and featureful apps and services without trusted third parties
MIT License
364 stars 68 forks source link

Use Core Lightning with TCP instead of Unix socket file #303

Open Kexkey opened 1 year ago

Kexkey commented 1 year ago

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 commented 8 months ago

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.