From a55d4150066456084fd18987acf014c18d0da976 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 3 Mar 2026 13:08:56 +0000 Subject: add nostr.repo-relay-only config to limit publishing to repo relays Adds a git config key nostr.repo-relay-only that, when set to true, causes nostr events to be sent only to the repository's own relays, skipping the user's personal write relays and default/blaster relays. Useful for repositories that should not broadcast to the maintainer's personal relay set. Set persistently via \`git config nostr.repo-relay-only true\` or in one step with \`ngit init --repo-relay-only\`. --- src/bin/ngit/cli.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bin/ngit/cli.rs') diff --git a/src/bin/ngit/cli.rs b/src/bin/ngit/cli.rs index 164035b..68b18a7 100644 --- a/src/bin/ngit/cli.rs +++ b/src/bin/ngit/cli.rs @@ -67,6 +67,9 @@ Or just for this repository: Other useful settings: - 'nostr.nostate true' to avoid publishing a state event when pushing to a nostr remote. + - 'nostr.repo-relay-only true' to only publish nostr events to repo relays, skipping user and + default relays. Useful for repositories where you don't want to broadcast to your personal + relay set. Set via `git config nostr.repo-relay-only true` or `ngit init --repo-relay-only`. - Login settings configured during `ngit account login`: - nostr.nsec - nsec or ncryptsec - nostr.npub - used for ncryptsec and remote signer -- cgit v1.2.3