tldr; when bolt12 ðŸ˜
Problem: Geyser Fund doesn't allow you to directly connect to CLN nodes, they only support LND. They also offer the option to provide them with a LN address.
I run CLN, I don't have an LN address. Fine, I'll use Alby.
Problem: Geyser fund is amazingly successful (we're still only 50% of the way there!), Alby starts rate limiting us and says "please dont send us more funds"
Spend lots of time and some sats paying Boltz to swap out Alby funds. Cry to @kodylow about how CLN doesn't support LN addresses.
Solution: Kody sends me @elsirion's amazing clnurl plugin repo. https://github.com/elsirion/clnurl/tree/master
Ok, we're in business. Sort of.
Add clnurl to base58 lightning node and restart it, adjust the firewalls etc.
Problem: This would be simple except that base58 lightning node runs in a container on a nixos box.
Solution: Jump clnurl through container to host port, to outside.
Problem: lightning node box is on private network, can only be talked to from external "jump host".
Problem: Also I need a domain name to front this. Preferrably
base58.school
, since that's the website address.Problem: base58.school is pointed to a different server, which runs the base58.school webapp.
Ok here's the very janky way that I solved this:
- added nginx rewrite rules to the "jump host" so that hitting a certain endpoint will send commands to the internal port which is forwarding to the container.
- added some hard coded rewrite rules into the base58 webapp so that it'll automagically forward everything from the base58 server to the jump host to the ln node box to the container. And then back.
In case you want to see all the ways you now zap sats to base58.school
Actual solution: get Geyser Fund to support bolt12 offers so I could have done this with about two clicks instead of needing to configure 3 different servers and not had to involve Alby in the process at all. Now my bookkeeping is all screwed up, as I've got sats strewn across two different accounts (three technically as I swapped in my personal Alby LN address when the base58 one got rate limited). RIP
Footnotes