Skip to content

Commit 430958f

Browse files
johnongitjohn
andauthored
docs: add lnbits in readme (#313)
Co-authored-by: john <[email protected]>
1 parent 054b110 commit 430958f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,24 @@ Install Docker from their [official guide](https://docs.docker.com/engine/instal
130130
- Set `paymentsProcessors.nodeless.storeId` to your store ID
131131
- Restart Nostream (`./scripts/stop` followed by `./scripts/start`)
132132
133-
4. Ensure payments are required for your public key
133+
4. [LNBITS](https://lnbits.com/)
134+
- Complete the step "Before you begin"
135+
- Create a new wallet on you public LNbits instance
136+
- [Demo](https://legend.lnbits.com/) server must not be used for production
137+
- Your instance must be accessible from the internet and have a valid SSL/TLS certificate
138+
- Get wallet Invoice/read key (in Api docs section of your wallet)
139+
- set `LNBITS_API_KEY` environment variable with the Invoice/read key Key above on your `.env` file
140+
141+
```
142+
LNBITS_API_KEY={YOUR_LNBITS_API_KEY_HERE}
143+
```
144+
- On your `.nostr/settings.yaml` file make the following changes:
145+
- Set `payments.processor` to `lnbits`
146+
- set `lnbits.baseURL` to your LNbits instance URL (e.g. `https://{YOUR_LNBITS_DOMAIN_HERE}/`)
147+
- Set `paymentsProcessors.lnbits.callbackBaseURL` to match your Nostream URL (e.g. `https://{YOUR_DOMAIN_HERE}/callbacks/lnbits`)
148+
- Restart Nostream (`./scripts/stop` followed by `./scripts/start`)
149+
150+
5. Ensure payments are required for your public key
134151
- Visit https://{YOUR-DOMAIN}/
135152
- You should be presented with a form requesting an admission fee to be paid
136153
- Fill out the form and take the necessary steps to pay the invoice

0 commit comments

Comments
 (0)