quart run settings and hypercorn on docker/Procfile.

This commit is contained in:
fiatjaf
2020-09-14 23:28:14 -03:00
parent f01028eac7
commit 42c6620a07
5 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -5,4 +5,4 @@ from .commands import migrate_databases
migrate_databases()
app = create_app()
app.run()
app.run(host=app.config["HOST"], port=app.config["PORT"])
+5
View File
@@ -11,6 +11,11 @@ env.read_env()
wallets_module = importlib.import_module("lnbits.wallets")
wallet_class = getattr(wallets_module, env.str("LNBITS_BACKEND_WALLET_CLASS", default="VoidWallet"))
ENV = env.str("QUART_ENV", default="production")
DEBUG = env.bool("QUART_DEBUG") or ENV == "development"
HOST = env.str("HOST", default="127.0.0.1")
PORT = env.int("PORT", default=5000)
LNBITS_PATH = path.dirname(path.realpath(__file__))
LNBITS_DATA_FOLDER = env.str("LNBITS_DATA_FOLDER", default=path.join(LNBITS_PATH, "data"))
LNBITS_ALLOWED_USERS: List[str] = env.list("LNBITS_ALLOWED_USERS", default=[], subcast=str)