From 14c5dd22d62d58f5aa6ddcc28ab5f62597a9640c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Mon, 19 Aug 2024 14:37:54 +0200 Subject: [PATCH] Add strfry doc draft --- doc/integrations/strfry.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 doc/integrations/strfry.md diff --git a/doc/integrations/strfry.md b/doc/integrations/strfry.md new file mode 100644 index 0000000..a1c6332 --- /dev/null +++ b/doc/integrations/strfry.md @@ -0,0 +1,29 @@ +# strfry (nostr relay) + +## LDAP policy + +... + +## Useful scripts + +### Syncing events for all local nostr users from a remote relay + +You can sync all events of all local users with a pubkey stored in LDAP from a +specified remote relay to the local relay with the `strfry-sync.ts` script: + + deno run -A /opt/strfry-sync.ts wss://relay.example.com + +Doing the same with Docker Compose (great for seeding data to your local relay +in development): + + docker compose run strfry deno run -A /opt/strfry-sync.ts wss://relay.example.com + +## Docker image + +In order to use the LDAP policy with Docker, you will need +[Deno](https://deno.com/) installed in your strfry container. We provide a +custom Docker image for strfry with Deno included (which we use in +development): + +* Registry: https://gitea.kosmos.org/kosmos/-/packages/container/strfry-deno/1.1.1 +* Source: https://github.com/raucao/strfry/blob/docker_deno/ubuntu.Dockerfile