clone

a self-hosted multitenant nostr relay with sites, file storage, git hosting, and inbox and outbox delivery

document repository publishing with ngit

Dami committed 573e6fb
commit
573e6fba3dbc5a3dec10f9d51442835f44ff124f
parent
9a365ae167630d6c0e376fc513a98ef5e2ca3eee
author
Dami <dami.etoile@gmail.com>
1 file changed, +7 -7
Mdocs/personal-relay.md14+++++++-------
M docs/personal-relay.md +7 -7
@@ -52,17 +52,17 @@ The owner is `npub1cq2s86qrtadf36eqq3epm38wmhdynrrcwxf84eldk3f94dkv7ttsrulrz5`.
5252 5353 ## Repository hosting5454 55-The relay hosts Git repositories over GRASP. Publishing needs the owner's signature on the announcement, on every ref state, and on each push, so use `nak git` with a remote signer rather than plain `git push`. Amber shows a bunker QR code under Applications; scan it into the shell with the webcam so the key stays on the phone:55+The relay hosts Git repositories over GRASP. Use [ngit](https://ngit.dev) so the owner signs the announcement, the ref state and each push with a remote signer. `ngit account login` shows a QR code to scan with Amber; the key stays on the phone.5656 5757 ```sh58-export NOSTR_SECRET_KEY="$(imagesnap -q -w 2 /tmp/amber.jpg && zbarimg -q --raw /tmp/amber.jpg)"59-export NOSTR_CLIENT_KEY="$(nak key generate)"60-nak git init --identifier tinyrelay --name tiny --owner <owner npub> \61- --grasp-servers tiny.tailbe516a.ts.net --relays wss://tiny.tailbe516a.ts.net62-nak git push --tags58+ngit account login59+ngit init --name tiny --identifier tinyrelay --grasp-server tiny.tailbe516a.ts.net \60+ --description "self-hosted, multitenant Nostr relay"61+git remote add tiny nostr://<owner npub>/tiny.tailbe516a.ts.net/tinyrelay62+git push tiny main --tags6363 ```6464 65-Keep the same client key so Amber remembers the approval. Run `nak git push` again after new commits. Anyone can clone from `https://tiny.tailbe516a.ts.net/<owner npub>/tinyrelay.git` without signing.65+Later pushes are plain `git push tiny`. Anyone can clone the repository with `git clone nostr://<owner npub>/tiny.tailbe516a.ts.net/tinyrelay`, or with plain Git from `https://tiny.tailbe516a.ts.net/<owner npub>/tinyrelay.git`.6666 6767 ## Web operations6868