What's the easiest way to run your own lnbits instance?
Discussion
Running it on umbrel...
So it can be publicly available?
As in accessible on clear net
Yes.
I run on a cheap cloud vps to get a static IP, use Caddy to connect it to a domain, and then connect to a different funding source not on that vps. Takes only a few minutes to set up the LNbits side of it. If your funding source is behind tor then you’d have to either setup tor on the LNbits server or a vpn. I just use a custodial backend because mine is only for small amounts, hobby use, anyway.
This section of the LNbits documentation talks about connecting to various funding sources.
Keeping LNbits separate from your funding node makes it all much more flexible and probably safer too.
https://github.com/lnbits/lnbits/wiki/LNbits-Documentation#funding-sources
Indeed this is a good scenario, easy to switch anytime to multiple funding sources.
Even if you use a temporary custodial funding source (let's say you don't have your own LN node available) like LNpay or lntipbot, you can always use the Scrub LNbits extension and forward automatically all sats to any other own destination wallet.
LNbits is a really powerful tool, endless ln address, endless lnurls, endless ln-auth, and many cool things, including the new Market extension.
I thing voltage also offers an LNbits solution but I haven’t looked into it and not sure how much it costs. #[4] is that how you run it?
If you actually want to use it steer clear of umbrel
TLDR:
1. take any linux machine, install lnbits, takes few command lines and 10 min
2. Use caddy for reverse proxy and link to a subdomain (lnbits.yourdomain.com), takes 2 min
3. connect to your LN node or any other LSP (LNpay or LNTipBot for example). Takes 1 min
Done! You have a working LNbits instance.
Thanks! I'll probably end up doing that.
#[4]
Ha! After reading your comment I just went to search for a how-to to do this and your guide was the first result! Thanks!
https://darthcoin.substack.com/p/build-your-own-lnbits-app-server
What do you reckon is a decent system requirements for a VPS running Lnbits, Caddy, Wireguard that accesses a remote Postgres and LN node through a wg tunnel?
1 vCPU, 1 GB RAM sufficient? Or more CPU / RAM?
thx
Yes, it could run OK, but more ram is better. Depends on your use case. LNbits in general do not use too much resources.
This is a popular guide in the LNBits community that follows a similar approach:
Incoming...
I run mynode on a dell server in a VM. It works really nice!
Citadel
App Store > Download > Install > Enable https for lnbits in Citadel and run it the fastest way⚡
