-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lnbits #873
base: master
Are you sure you want to change the base?
Add lnbits #873
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add after line 171?
* [opt-add-lnbits](docker-compose-generator/docker-fragments/opt-add-lnbits.yml), for a self-hosted lnbits backed by BTCPay Server.
Thanks for pointing this out. I've added your suggestion. |
When does this feature will be approved? Cant wait for it 🙃 |
I'm reluctant to approve this because there are many steps to get this working right and most users might shoot themselves in the foot and cause the need for troubleshooting. I don't have a suggestion either. But I'm hoping this becomes a much simpler setup in terms of what a user needs to do on a terminal |
What bugs me currently: When a user makes modifications to their .env file for lnbits, and we add stuff there by an update - it will run into a merge conflict. Thats one of the points where I see the need of support. Don't see a better option then documenting those cases so that users can help themselves. What would be nice: Not to need a seperate sub-/domain but let this run inside the BTCPay vHost. Which I think you discovered would need a lot of changes from lnbits end. Question remains: Do we keep this PR open and keep on merging master and lnbits updates into it? How about recommending it to people at all? Just for test setups currently? Thanks for taking the time to look at this. @Kukks |
maybe you can write some automation scripts? like |
I will think some more about it. I thought about replacing the .env file from lnbits with actual environment variables set in the dockerfile. Maybe the lnbits-configure.sh script could:
any additions? |
You'll need to check about the db container (if it exists to create the db first), and maybe even to configure based on LN node used? |
pushed lnbits 0.12.8 to this branch. Configuration no longer happens via the .env files, but via environment variables that are set for LND or Clightning and can be overwritten with custom fragments. example for a custom fragment: opt-add-lnbits-admin.custom.yml version: '3'
services:
lnbits:
environment:
LNBITS_ALLOWED_USERS: USER-ID-FROM-USER-PROFILE-PAGE
LNBITS_ADMIN_USERS: USER-ID-FROM-USER-PROFILE-PAGE |
If you want to support the testing of this PR, you can check it out following:
cd /root/BTCPayServer/btcpayserver-docker/
(or where you orginallly checked out the btcpayserver-docker repo)git remote set-url origin https://github.com/petzsch/btcpayserver-docker.git
git pull
git checkout add-lnbits
TODOs:
move env vars in docker file, create config wizard etc.)