mirror of https://github.com/lukechilds/lnbits.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
455 B
16 lines
455 B
import os
|
|
|
|
from .wallets import LntxbotWallet # OR LndHubWallet
|
|
|
|
|
|
WALLET = LntxbotWallet(
|
|
endpoint=os.getenv("LNTXBOT_API_ENDPOINT"),
|
|
admin_key=os.getenv("LNTXBOT_ADMIN_KEY"),
|
|
invoice_key=os.getenv("LNTXBOT_INVOICE_KEY"),
|
|
)
|
|
|
|
# OR
|
|
# WALLET = LndHubWallet(uri=os.getenv("LNDHUB_URI"))
|
|
|
|
LNBITS_PATH = os.path.dirname(os.path.realpath(__file__))
|
|
DATABASE_PATH = os.getenv("DATABASE_PATH") or os.path.join(LNBITS_PATH, "data", "database.sqlite3")
|
|
|