cryptosharks131 / lndg

Lite GUI web interface to analyze lnd data and leverage the backend database for automation tools around rebalancing and other basic maintenance tasks.
MIT License
225 stars 43 forks source link

[FEATURE] Add option to run in isolated environment without `lnd.conf` #29

Closed jblachly closed 1 year ago

jblachly commented 2 years ago

All components of my lightning stack are running in separate VMs (actually LXC containers).

AFAICT, lndg needs RPC info from lnd.conf and admin.macaroon.

Please consider an lndg.conf with just RPC credentials and the name of an arbitrary macaroon (for example, I may wish to use the readonly caveat)

Thank you!

cryptosharks131 commented 2 years ago

The only things that lndg needs to run is a valid tls and macaroon file. The settings for lndg are all found inside lndg/settings.py.

In this case, you could bake your own macaroon and rename it to admin.macroon. Then place this and the tls.cert into a folder structure that matches a lnd directory (all subfolders can be empty except for these two files).

Then use the -dir flag of initialize.py or update your settings.py LND_DIR_PATH variable to the isolated directory.

jblachly commented 2 years ago

Awesome, thanks. I'll leave this open and try to make a PR for the documentation.

cryptosharks131 commented 1 year ago

Closing as in v1.4.0 you may now specify a custom path to your macaroon and tls files.