debian-cryptoanarchy / cryptoanarchy-deb-repo-builder

Tooling for building a Debian repository containing interconnected, well-working applications.
145 stars 25 forks source link

Connect LND to BTCPayServer #52

Closed Kixunil closed 4 years ago

Kixunil commented 4 years ago

There's currently no code to connect LND to BTCPayServer automatically. While it'd be easy to hack something together, I feel that this is the right time to finally implement debinteg and do it properly.

But I'm willing to quickly hack it if there's a strong enough pressure.

nixbitcoin commented 4 years ago

How come you're not using the admin.macaroon?

nixbitcoin commented 4 years ago

How are you passing the lnd connection string to BTCPayServer?

Kixunil commented 4 years ago

The lnd-genmacaroon package contains a simple script that generates union(info.macaroon, readonly.macaroon) and that one is stored in a location which is only accessible by users that are both in lnd-system-{network}-readonly and lnd-system-{network}-invoice groups.

The connection string is generated here the file is then concatenated to the resulting config file (I use this technique for all apps that don't support conf dirs natively)