Run your own Nostr relay (strfry)
A private, inbox or community relay on a small VPS.
Free excerpt
Decide the relay's job
Private (only your keys can write), inbox (others can write to you) or community (a list of members). The policy follows from the job.
Restrict writes
strfry supports a write-policy plugin; use an allow-list of pubkeys for private and community relays.
Proxy it correctly
nginx needs the WebSocket headers (Upgrade, Connection) and TLS; raise the open-file limit for the service.
Back up and compact
Use strfry export for a portable backup and strfry compact to reclaim database space; watch disk usage.
The paid runbook includes build steps, a tested write-policy plugin, nginx + TLS, systemd, backups, retention and relay-check.sh.
Get the full pack
Sats Werkstatt
Run Your Own Nostr Relay: strfry Runbook + TemplatesOperate a private, inbox or community Nostr relay with strfry: build, allow-list write-policy plugin (tested), nginx websocket proxy + TLS, systemd, backups, retention, compaction, monitoring. PDF + templates + relay-check.sh. English.
7,000 sats English
Buy with Lightning