dni ⚡
034813a1ab
stuck in retrying backend loop, fix issue #652 ( #862 )
...
* maybe solution to issue #652
* formatting, when precommit merge?
* Update lnbits/app.py
* Update lnbits/app.py
Co-authored-by: dni <dni.khr@gmail.com>
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-13 14:46:47 +02:00
ben
817472c036
Merge branch 'main' into fix/mypy
2022-07-27 19:57:23 +01:00
ben
58659d2f47
Added meta for api /docs
2022-07-27 18:20:36 +01:00
Tiago Vasconcelos
41dc1b0512
Fix/hotfix tpos 2 ( #783 )
...
* fix older tpos without tips
* bad math requesting invoice
* make format
2022-07-27 16:45:17 +02:00
dni
895770e26a
remove commented out and unused code in app object, it is now used in lnbits/__main__.py directly, fixes mypy error
2022-07-25 12:00:22 +02:00
ben
244d6f23bf
Merge branch 'main' into matthewcroughan/nixify
2022-07-23 20:09:24 +01:00
calle
6a3a72b944
Uvicorn loguru format ( #741 )
...
* use loguru formatting for uvicorn logs
* remove depth from logging interceptor
* format for uvicorn
* black
* isort
* black again
* python3-dev
* python3-dev
* leaner pipeline
Co-authored-by: dni <dni.khr@gmail.com>
2022-07-15 19:54:12 +02:00
matthewcroughan
36e92765d3
treewide: use StaticFiles() rather than rel path
...
This commit is not exhaustive, and it is a trend in this codebase to not
use StaticFiles() and instead use relative paths. This means the code
cannot run anywhere other than the source code directory, as it will not
find the files it is looking for
2022-07-08 11:06:26 +01:00
calle
262bd32f44
debug format more expressive ( #715 )
2022-07-07 16:24:36 +02:00
calle
089313f613
Logging with loguru ( #708 )
...
* logging
* requirements
* add loguru dependency
* restore it
* add loguru
* set log level in .env file
* remove service fee print
* set log level
* more logging
* more logging
* more logging
* pyament.checking_id
* fix
2022-07-07 14:30:16 +02:00
calle
e7dd3ec64f
reactivate actions ( #682 )
...
* reactivate other actions
* black
* codeql 2
* black only
* remove mock event loop
* do not follow grpc
2022-06-27 01:11:35 +02:00
Tiago vasconcelos
3e8d2a5ba1
fix response
2022-06-15 16:49:39 +01:00
Tiago vasconcelos
1ebba9f846
send json response basic error
2022-06-15 16:37:10 +01:00
Tiago vasconcelos
626a93a46c
add json response for basic error
2022-06-15 16:20:20 +01:00
Tiago vasconcelos
c4f9206c10
change status code
2022-06-13 21:43:17 +01:00
Tiago vasconcelos
5ceb8639f9
clean up and comment
2022-06-13 16:18:16 +01:00
Tiago vasconcelos
9279129f07
check if request is from browser
2022-06-13 15:18:14 +01:00
callebtc
36952981c2
remove success var
2022-02-21 09:25:45 +01:00
callebtc
fbafe2b8f1
Retry backend connection on startup
2022-02-21 09:17:36 +01:00
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 vasconcelos
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