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 app #372
Add lnbits app #372
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.
Really nice job on packaging LNbits, @louneskmt! Works flawlessly.
cc @arcbtc: LNbits looks ready to be shipped in the next Umbrel release! Can you please quickly eyeball this once? Also, everything in the PR description above is what the user will see in the LNbits app description on the Umbrel App Store, along with the app icon and gallery images here (getumbrel/umbrel-apps-gallery#4). So feel free to suggest any edits if you'd like. |
apps/lnbits/docker-compose.yml
Outdated
# App | ||
LNBITS_SITE_TITLE: "LNbits - Umbrel" | ||
LNBITS_DEFAULT_WALLET_NAME: "LNbits wallet" | ||
LNBITS_DISABLED_EXTENSIONS: "amilk" |
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.
Why is this extension disabled?
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.
It allows an user to automatically claim sats from an LNURLw. For example, a LNURL to claim 1000 sats every minute. I found this pretty unfair as the delay is here to allow more people to claim sats (e.g. a test LNURL in a Bitcoin bar, for newbies to discover Lightning) and not just have a single person claiming the whole balance.
If necessary I can enable it.
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.
Hmmn, I agree that doesn't sound like very nice behaviour but I'm not sure it should be our decision to blacklist it.
It's not doing anything bad by default, right? A user would have to manually enable it?
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.
A user would have to manually enable it?
Each extension has to be activated from the extensions page.
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.
But of the extension is disabled in this env var, it cannot be installed from the web page. So yeah, if it shouldn't be our decision to blacklist it, we should remove this line.
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.
Keep it disabled until we manage to improve it for future LNbits release
apps/lnbits/docker-compose.yml
Outdated
LNBITS_SITE_TITLE: "LNbits - Umbrel" | ||
LNBITS_DEFAULT_WALLET_NAME: "LNbits wallet" | ||
LNBITS_DISABLED_EXTENSIONS: "amilk" | ||
LNBITS_ALLOWED_USERS: "" |
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.
Why is this empty?
Are there any docs for these settings? I had a quick look at the LNbits repo but didn't find any.
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.
I used the default values here: https://github.com/lnbits/lnbits/blob/master/.env.example
Is the app being built in development mode? |
I don't think so, this is the default value. Maybe LNbits needs Quark in dev mode, idk. |
apps/lnbits/docker-compose.yml
Outdated
LNBITS_DEFAULT_WALLET_NAME: "LNbits wallet" | ||
LNBITS_DISABLED_EXTENSIONS: "amilk" | ||
LNBITS_ALLOWED_USERS: "" | ||
LNBITS_FORCE_HTTPS: "true" |
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.
Do you know what this option does?
It doesn't appear to be using HTTPS at all for me.
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.
Not really. I think we can get ride of these 3 lines (disabled extensions, force http and allowed users).
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.
Looking good, nice job!
No point blocking the merge for this but the Docker image is very large:
The final image is including all of the build dependencies. It could probably be reduced in size significantly by using multistage builds and only including runtime deps in the resulting image. It also isn't checksumming any external files it pulls in, which can make the images non-deterministic and hard to verify. See https://github.com/getumbrel/umbrel/tree/master/apps#a-good-dockerfile for how to resolve this. |
Thanks, will try to improve this for the next version. The dojo-whirlpool image is also 600 MB, but I used their Dockerfile. Maybe I will modify it to make a smaller final image. |
Wow, ace work:
|
Only if I am not too late that is! |
You're in luck, we just realized that it's Valentines so we're delaying the release by a day lol. The changes sound good. Regarding the one-line description, there's a 50 character limit on it. I know you can't really fit in the the entire description in 50 characters, but think of it more like a tagline for LNbits, rather than a description. Here's where it shows up in the app store: Currently it's set to "Multi-user wallet management system", but let us know if you'd like to change it to something else. |
Oh yeah, that's nice 👍, leave it like that |
App Submission
App name
LNbits
Version
v0.2.0
One line description of the app
(max 50 characters)
Multi-user wallet management system
Summary of the app
(50 to 200 words)
LNbits is a simple multi-user and account system for Lightning Network that can be used for creating separate Lightning wallets for friends and family members. You can also create multiple accounts for yourself to mitigate the risk of exposing applications to your full balance via unique API keys for each wallet.
LNbits is packaged with tools to help manage funds, such as a table of transactions, line chart of spending, export to CSV, and more to come. It provides an extendable platform for expanding Lightning Network functionality via LNbits extension framework, and can also be used as a fallback wallet for the LNURL scheme.
Developed by
LNbits
Developer website
https://github.com/lnbits/lnbits
Source code repository
https://github.com/lnbits/lnbits
Support link
(Link to your Telegram support channel, GitHub issues/discussions, support portal, or any other place where users could contact you for support.)
https://t.me/lnbits
Uses
256x256 SVG icon
(GitHub doesn't allow uploadig SVGs directly. Upload your file to an alternate service, like https://svgur.com, and paste the link below.)
App screenshots
(Upload 3 to 5 high-quality screenshots (at least 1280x800px) of your app in PNG format.)
I have tested my app on: