Commit Graph
51 Commits
Author SHA1 Message Date
benarc 228717195b back 2022-01-30 19:43:30 +00:00
Tiago vasconcelos f76ef6b975 allow all origins to request from lnbits 2021-12-30 16:09:12 +00:00
benarc 1d3bb016a2 I want them to turn black 2021-10-17 18:33:29 +01:00
Stefan Stammberger dba988a969 fix: reactivate catch-all exception handler 2021-09-30 19:16:38 +02:00
Stefan Stammberger 534dfdb4e0 fix: startup of lntickets listeners 2021-09-29 20:44:00 +02:00
Stefan Stammberger 8c5989d465 fix: crash when an ext doesn't have static files 2021-09-28 21:10:51 +02:00
Stefan Stammberger e3c7ca0726 feat: update offlineshop extension 2021-09-16 19:42:05 +02:00
Stefan Stammberger d9849d43d2 refactor: replace Trio with asyncio/uvloop 2021-08-30 19:55:02 +02:00
Stefan Stammberger 3e5af8c1d1 refactor: purge Quart from the codebase
Most functionality is still broken
2021-08-27 20:54:42 +02:00
Stefan Stammberger de4d3b012c fix: invoke error page correctly 2021-08-24 19:14:04 +02:00
Stefan Stammberger 57fb6c4b11 Merge branch 'FastAPI' of github.com:arcbtc/lnbits into FastAPI 2021-08-23 21:17:50 +02:00
Stefan Stammberger 6f38fdc39b feat: move all non-api routes to their own router
This unclutters the docs page a bit by making html routes collapsible.
2021-08-23 21:17:46 +02:00
Ben Arc 449cbfed89 Error page 2021-08-23 19:19:43 +01:00
Stefan Stammberger 0806ccfbbd fix: missing static file serving folder 2021-08-23 18:51:17 +02:00
Stefan Stammberger 938fc54af3 feat: switch from Quart to FastAPI part I 2021-08-22 20:07:24 +02:00
fiatjaf 83137ba0a0 print handled exceptions. 2021-07-31 08:15:28 -03:00
fiatjaf b1b487bc48 catch everything and restart in main background tasks. 2021-07-30 19:29:54 -03:00
Ben Arc ae0849143b Easier to customise title/tagline
Also added description that can replace frontpage blurb
2021-07-02 12:31:05 +01:00
Tiago vasconcelos 87d12634f7 Read .env themeing colors
- allowed/availabe themes defined by admin
2021-06-30 17:00:56 +01:00
fiatjaf 1b433f9cbc remove secure headers. 2021-06-23 17:21:53 -03:00
Tiago vasconcelosandfiatjaf 65a85e3612 fix show commit version on UI 2021-06-10 12:03:44 -03:00
fiatjaf 8cff11bf72 global quart errorhandler. 2021-05-06 23:22:02 -03:00
fiatjaf 2b21a4f479 g.nursery -> current_app.nursery 2021-05-06 12:41:44 -03:00
fiatjaf 85011d23c3 fix sqlite database locked issues by using an async lock on the database and requiring explicit transaction control (or each command will be its own transaction). 2021-03-26 19:10:30 -03:00
fiatjaf 6164b9d27e exit the app when we cannot connect to a backend. 2021-03-24 09:49:43 -03:00
fiatjaf d4d069fc77 make all methods from all wallets async. 2021-03-24 01:01:09 -03:00
fiatjaf 42bd5ea989 remove exception to black line-length and reformat. 2021-03-24 00:40:32 -03:00
fiatjaf 7e4a42e7ff stop doing the check_invoices thing on each call. do it once on lnbits starup and then rely on the invoices listener. 2021-03-21 17:57:33 -03:00
pseudozach b91271315a captcha extension added 2020-12-30 15:50:08 -08:00
fiatjaf d3fc52cd49 migrate to sqlalchemy-aio.
a big refactor that:

- fixes some issues that might have happened (or not) with asynchronous
    reactions to payments;
- paves the way to https://github.com/lnbits/lnbits/issues/121;
- uses more async/await notation which just looks nice; and
- makes it simple(r?) for one extension to modify stuff from other extensions.
2020-11-21 23:02:14 -03:00
fiatjaf 2552fd8fc9 internal payments get reported on async listeners. 2020-10-22 15:36:37 -03:00
fiatjaf b5a07c7ae7 add status() method to wallets to be used in initial check. 2020-10-12 22:30:19 -03:00
fiatjaf 9a16dfa960 remove annoying warnings and unnecessary prints.
show a summary of some settings on startup when running __main__.py
2020-10-06 12:59:08 -03:00
fiatjaf c5352c0309 register channel listeners instead of callbacks.
makes for a little less black magic and more reasonable use of nurseries
and less unnecessary pseudo-requests.
2020-10-06 01:50:56 -03:00
fiatjaf 95e8573ff8 SSE endpoint for paid invoices.
also move very essential stuff from core/tasks.py to tasks.py so things
are more organized.
2020-10-06 00:40:18 -03:00
fiatjaf c3ded859df fix requirements after rebase. 2020-10-04 14:07:52 -03:00
fiatjaf 9994e61615 migrate to trio so c-lightning sockets stop hanging. 2020-10-04 12:06:20 -03:00
fiatjaf 90c640b659 fix async so now it is a mess that works. 2020-10-04 12:05:01 -03:00
fiatjaf 2c92205703 async invoice listeners through webhooks: lnpay and opennode. 2020-10-04 12:04:49 -03:00
fiatjaf 04222f1f01 basic invoice listeners. 2020-10-04 12:04:47 -03:00
EnekoandGitHub f60cebb072 fix: add missing assets command (#100) 2020-09-28 23:11:59 +02:00
fiatjaf 49baa07141 fix proxyfix. 2020-09-28 00:21:53 -03:00
fiatjaf ef0bdf8363 mypy quibbles. 2020-09-16 20:24:17 -03:00
fiatjaf 2b38207100 mimic x_proto, x_host params from old ProxyFix. 2020-09-15 17:19:34 -03:00
fiatjaf 6928f431a7 poor man's flask-assets. 2020-09-15 15:54:05 -03:00
fiatjaf 3a0762ff82 proxy fix (x-forwarded-...). 2020-09-14 23:56:25 -03:00
fiatjaf f01028eac7 migrate from flask to quart.
also remove all flaskiness from static file serving.
and reference all vendored scripts on the base tempĺate for simplicity.
2020-09-14 16:03:25 -03:00
fiatjaf 1faf0b152c remove annoying print(). 2020-09-13 21:48:46 -03:00
fiatjafandfiatjaf 4855e2cd3d make every request a database transaction. 2020-09-11 14:17:09 -03:00
Eneko Illarramendiandfiatjaf d62031b068 chore: let's just call it flask_migrate
I think it should stay, because it can come handy for some deployment methods.
2020-09-06 21:06:01 -03:00