21 Commits

Author SHA1 Message Date
TL
3d1e5733cc
feat: add dark theme support for static html files (#373)
* Add dark theme styling

* Add auto detect preferred  color scheme
2024-10-20 20:16:26 -04:00
Mihajlo Medjedovic
ed30823511
Admission check endpoint (#338) 2024-01-12 15:43:33 -05:00
Ricardo Arturo Cabral Mejía
df1a36437c
feat: implement opennode payments processor (#315) 2023-05-23 08:08:16 -07:00
Ricardo Arturo Cabral Mejía
52aac39875
feat: implement nodeless payments processor (#305)
* chore: hide powered by zebedee if payment processor is not

* chore: add nodeless as payments processor to settings

* fix: bad content type on zebedee callback req handler

* chore(release): 1.23.0 [skip ci]

# [1.23.0](https://github.com/Cameri/nostream/compare/v1.22.6...v1.23.0) (2023-05-12)

### Bug Fixes

* add SECRET as env variable ([#298](https://github.com/Cameri/nostream/issues/298)) ([58a1254](58a12546f0))
* invoice auto marked as paid ([be6d6f1](be6d6f1454))
* issues with invoices ([#271](https://github.com/Cameri/nostream/issues/271)) ([e1561e7](e1561e78fd))

### Features

* add LNURL processor ([#202](https://github.com/Cameri/nostream/issues/202)) ([f237400](f23740073f))
* allow lightning zap receipts on paid relays ([#303](https://github.com/Cameri/nostream/issues/303)) ([14bc96f](14bc96f516))

* feat: implement nodeless payments processor

* docs: add accepting payments section

* chore: validate nodeless webhook secret

* chore: hide powered-by-zebedee for non-zebedee processors

---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
2023-05-15 08:07:28 -07:00
Ricardo Arturo Cabral Mejía
14bc96f516
feat: allow lightning zap receipts on paid relays (#303)
* chore: add event_kinds whitelist for fee schedules

* chore: fix identation in default-settings.yml

* chore: waive admission fee for specific event kinds

* docs: add payment settings to CONFIGURATION.md

* docs: improve read replica docs
2023-05-12 19:52:29 -04:00
Ricardo Arturo Cabral Mejía
565f67c5f6
chore: use mailto: scheme for info.contact in settings (#300) 2023-05-06 11:33:58 -07:00
Ricardo Arturo Cabral Mejía
be6d6f1454
fix: invoice auto marked as paid 2023-04-21 19:13:39 -04:00
Ricardo Arturo Cabral Mejía
e1561e78fd
fix: issues with invoices (#271)
* fix: issues with invoices

* chore: add invoice event tag

* chore: add sub limits

* chore: cleanup invoices page

* chore: use mergeDeepLeft when updating invoice

* chore: ignore whitelisted pubkey for adminssion fee

* chore: use secp256k1 bytesToHex

* fix: insecure derivation from secret

* fix: tests

* chore: consistent returns

* test: fix intg tests

* fix: intg tests

* chore: set SECRET for intg tests
2023-04-07 09:48:28 -07:00
Adithya Vardhan
f23740073f
feat: add LNURL processor (#202)
* feat: add new lnurl processor

* fix: lnbits issues

* fix: add default settings for lnurl processor

* fix: small changes

* fix: more changes

* fix: add verify url in upsert omit

* fix: change comment

* chore: add updateInvoiceStatus

* chore: revert lnbits change

* fix: changes
2023-03-06 08:34:38 -05:00
Ricardo Arturo Cabral Mejía
0954d8426c
fix: rsv1 error (#225)
* chore: remove secret

* chore: allow lightningtipbot pubkey for zaps

* chore: add cloudflare remoteipheader

* chore: close client conn on error

* chore: terminate conn w/o subs

* chore: enable permessage-deflate

* fix: start logs
2023-02-20 21:37:55 -08:00
Ricardo Arturo Cabral Mejía
fd3294929a
fix: confirm invoice function ambiguous unit variable (#221)
* fix: dont crash when SECRET is not set

* docs: add semisol to contributors

* docs: improve readme

* docs: add payment info to readme

* docs: add zebedee_api_key to configuration.md

* fix: confirm_invoice unit var

* chore: remove unused code

* chore: improve error logging for payments

* chore: use  instead of changeme

* chore: fix typo

* chore: improve get invoice status ctrl

* fix: csp bug

* chore: remove rate limits

* chore: improve invoice page logging

* chore: prevent root with start_local

* chore: revert to redis 4.5.1
2023-02-20 09:15:45 -08:00
Semisol
2342386bb4
Add LNbits payment processor (#194)
* feat: add lnbits payment processor

* fix: add lnbits error logging and add lnbits config

* feat: use HMAC instead of IP whitelist for LNbits

also adds two utility functions and ensures the SECRET environment
variable is set.

* refactor: remove unnecessary comment

* fix(pay-to-relay/lnbits): compare by msat scaled amount

* fix: scale balance addition with invoice unit on confirm_invoice
2023-02-18 06:13:49 -08:00
Ricardo Arturo Cabral Mejía
bcd072efcd
fix: bug unable confirm invoice (#204)
* chore: confirm only if bolt11 is present

Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>

* fix: fix double invoice bug. thx mazin

* fix: fypo tix on default-settings

* fix: use correct dbname on knexfile

---------

Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-14 20:41:09 -08:00
Ricardo Arturo Cabral Mejía
bfcdac51b0
feat: Add health api endpoint or kind (#166)
* feat: handle GET /healthz

* chore: simplify default settings

* chore: keep client alive on message

* chore: increase ws heartbeat timeout to 2min

* chore: improve logging during startup

* fix: zebedee callback crash on expired invoice

* fix: QR code csp error

* feat: add get-invoice-status-controller

* feat: add get-invoice-status-controller factory

* chore: refactor router

* feat: get invoice status using rest api

* fix: bad import

Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>

---------

Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-03 23:02:01 -08:00
Ricardo Arturo Cabral Mejía
1a8c55df38
chore: increase max payload size to 262144
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-03 19:17:38 -05:00
Andre Neves
54684a76f3 feat: adding powered by ZBD badge if its enabled payment processor 2023-02-02 00:19:26 -05:00
Ricardo Arturo Cabral Mejía
cd4c60a139 feat: implement static mirroring
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-02 00:19:26 -05:00
Ricardo Arturo Cabral Mejía
282f7db0a1 fix: increase rate limits
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-02 00:19:26 -05:00
Ricardo Arturo Cabral Mejía
f9c53eeeb8 feat: massive update
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-02 00:19:26 -05:00
Anton Livaja
5a8107f73c feat(utils): refactor settings to use yaml 2023-02-02 00:19:26 -05:00
Ricardo Arturo Cabral Mejía
2618a4d2dc feat: add pay-to-relay 2023-02-02 00:19:26 -05:00