From 50e3d3803b36ddd09ba332e26a15955c967f4966 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 2 Jul 2021 19:10:57 -0300 Subject: [PATCH] add more db instructions to .env.example. --- .env.example | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 50bb0c97..f0e7c6e4 100644 --- a/.env.example +++ b/.env.example @@ -9,9 +9,13 @@ PORT=5000 LNBITS_ALLOWED_USERS="" LNBITS_DEFAULT_WALLET_NAME="LNbits wallet" -# Database: by default we will use SQLite, but you can replace that with a Postgres URL +# Database: to use SQLite, specify LNBITS_DATA_FOLDER +# to use PostgreSQL, specify LNBITS_DATABASE_URL=postgres://... +# to use CockroachDB, specify LNBITS_DATABASE_URL=cockroachdb://... +# for both PostgreSQL and CockroachDB, you'll need to install +# psycopg2 as an additional dependency LNBITS_DATA_FOLDER="./data" -# LNBITS_DATABASE_URL="postgres:///" +# LNBITS_DATABASE_URL="postgres://user:password@host:port/databasename" LNBITS_DISABLED_EXTENSIONS="amilk" LNBITS_FORCE_HTTPS=true