fiatjaf
9185342c72
simplify environment variables required.
instead of multiple keys/macaroons with different permissions we request only one.
if someone wants to use lnbits with an invoice macaroon they're free to do it and
we will just fail on 'pay' methods, as before.
this also grandfathers the previous environment variables names so everything keeps
working without people having to change their setups.
in the meantime some bugs with lntxbot and c-lightning were fixed and the `requests`
dependency was eliminated because I can't organize myself into meaningful chunks of
changes.
4 years ago
fiatjaf
e408febf97
hypercorn -k trio
4 years ago
fiatjaf
9994e61615
migrate to trio so c-lightning sockets stop hanging.
4 years ago
fiatjaf
211ac0391b
overengineered async fix for /lnurlwallet internal hanging.
4 years ago
fiatjaf
cd8a447ba0
pytest quibbles and dev dependencies.
4 years ago
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.
4 years ago
Eneko Illarramendi
1bc5e144d3
refactor: clean up __init__ file following some Flask conventions
Flask extensions are loaded in a way that makes them easily reusable by blueprints.
In this commit we are also adding `environs` to manage .env and settings:
breaking changes!
- FLASK_APP=lnbits.app
- LNBITS_ALLOWED_USERS needs to be empty now to allow all users (NOT "all")
4 years ago
Eneko Illarramendi
6b33f150c6
fix: revert default python version to 3.7 in Pipfile, closes #85
But tests will be run on both 3.7 and 3.8 as we want to support >= 3.7
4 years ago
Eneko Illarramendi
a651f747ac
chore: remove `gunicorn` and `gevent` from minimum requirements
It is now up to the user to install these (or other) for production deployment.
More info: https://flask.palletsprojects.com/en/1.1.x/tutorial/deploy/#run-with-a-production-server
4 years ago
Eneko Illarramendi
0d0e00e699
chore: update Pipfile
4 years ago
Eneko Illarramendi
e01de0eae5
chore: update requirements (but lock `gevents`)
`gevents` has been locked to avoid myNode installation problems.
5 years ago
Eneko Illarramendi
8ea72c9934
feat: add CORS headers
5 years ago
Eneko Illarramendi
2c5e539795
refactor: make some wallet dependencies optional
5 years ago
Eneko Illarramendi
178fe65fb2
test: configure Travis for CI
5 years ago
Eneko Illarramendi
d917feeb02
feat: prepare for deploying to Dokku
5 years ago
Eneko Illarramendi
94e524bf4c
chore: clean requirements
5 years ago
Eneko Illarramendi
dd23b20090
chore: various tweaks
5 years ago
Eneko Illarramendi
4397a6cab3
feat: use `cerberus` schemas to validate POST data
5 years ago
Eneko Illarramendi
8dc2143080
chore: update requirements
5 years ago
Eneko Illarramendi
49addb8d56
refactor: breaking bad
5 years ago
Eneko Illarramendi
f98a5040ac
refactor: decorators, models and more broken bits
5 years ago
Eneko Illarramendi
f10585abe1
chore: update requirements
5 years ago
Eneko Illarramendi
21a6958458
fix: minor issues
5 years ago
Eneko Illarramendi
3d3632a06f
refactor: add some dev files and `black` original code
Original server code has been moved to __init__ file, so we can
work on `lnbits` as a package.
5 years ago