diff --git a/.env.example b/.env.example index 50bb0c97b..f0e7c6e41 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