A private nostr relay
A private relay is a great way to make sure that your notes are always available.
The relay will only save notes from a specified privatekey, and ignore all others, but let anyone request the notes that it has saved.
The software will accept settings from a file or environmental variables, and be connected to a postgresql database (support pending).
Configuration is read from environment and .env
file.
debug_level
: ERROR
, WARN
, INFO
(default), DEBUG
, TRACE
pg_host
: Postgres endpointpg_pass
: Postgres passwordpg_user
: Postgres userpubkey
: The pubkey of the nostr user that can post (required)ws_ip
: IP interface to host ws on (default: 0.0.0.0)ws_port
: Port to host ws on (default: 8080)Note that non persistent in memory sqlite will be used unless postgres configurations is set.