upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/.env.example
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-11-21 04:04:05 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-11-21 04:04:05 +0000
commit2e799fa7ec57d284c643df8b8dc54471470f5c59 (patch)
tree0d8affa3e742d34e8d5a251b4ae50678c10a10d5 /.env.example
parent25b206c00766579f2322619f4716ca999f9b92ec (diff)
feat: add database backend configuration options
Add environment variable configuration for database backend selection: - Added DatabaseBackend enum (memory, nostrdb, lmdb) in src/config.rs - Updated relay builder to use configured backend in src/nostr/builder.rs - Added NGIT_DATABASE_BACKEND to .env.example with documentation - Updated docs/reference/configuration.md with backend comparison table NostrDB and LMDB backends prepared for future implementation when nostr-relay-builder adds support. Currently defaults to in-memory database with warning logs when persistent backends are selected.
Diffstat (limited to '.env.example')
-rw-r--r--.env.example6
1 files changed, 6 insertions, 0 deletions
diff --git a/.env.example b/.env.example
index 291d00a..0a27bbb 100644
--- a/.env.example
+++ b/.env.example
@@ -14,6 +14,12 @@ NGIT_RELAY_DESCRIPTION=A GRASP-compliant Git relay with Nostr authorization
14NGIT_GIT_DATA_PATH=./data/git 14NGIT_GIT_DATA_PATH=./data/git
15NGIT_RELAY_DATA_PATH=./data/relay 15NGIT_RELAY_DATA_PATH=./data/relay
16 16
17# Database backend (memory, nostrdb, lmdb)
18# - memory: In-memory database (default, fastest, no persistence)
19# - nostrdb: NostrDB backend (persistent, optimized for Nostr) [Not yet implemented]
20# - lmdb: LMDB backend (persistent, general purpose) [Not yet implemented]
21NGIT_DATABASE_BACKEND=memory
22
17# Server configuration 23# Server configuration
18NGIT_BIND_ADDRESS=127.0.0.1:8080 24NGIT_BIND_ADDRESS=127.0.0.1:8080
19 25