The full Lightning self-custodial Stack with phoenixd
How to run your full self custodial stack: phoenixd + letsencrypt + nginx + lnbits from your own domain name
We talked about phoenixd in the last posts on this stack website and newsletter. We installed it and made some tests. How could it be wonderful to have easily a LNBits fully working install on my own domain, connected to my phoenixd ?
Then this is the article for you. In this article we will show you how to do that using our github opensource setup project.
What you need.
a working Debian VPS. You can get one at https://tritema.ch for example. You need to have docker installed and working (see below)
a domain name where you can control the DNS records. domains lb1.yourdomain.com and n1.yourdomain.com must be pointed A to the IP of your VPS. For activating the SSL certificate you also need to create a TXT record in DNS as well
will to test and learn
If you dont know how to setup your VPS with debian and Docker, please follow this previous article where all the procedure was precisely described. Here the link:
Now just clone the repository and follow the instructions in the README page until the end.
https://github.com/massmux/lightstack
Then you will get the following results:
LNBits 0.12.10 install served at the URL: https://lb1.yourdomain.com
phoenixd API endpoint served at https://n1.yourdomain.com using the password you can find in your phoenix.conf file inside the data/ folder.
Next step will be creating a new init script to make automatically all initial setups with less pain at the command line.
Any contribution is greatly apreciated! I am also interested in getting comments below to this article, with your ideas, suggestions, and so on. this is very precious to me. thanks a lot.
Massimo the Master!
Recently added an initialization script, for automatizing all the setup process. Checkout the github repository