# Nostr Relay

Nostr Relay is an Umbrel app that runs a private, self-hosted Nostr relay to store and back up your Nostr messages and events. It is open source and self-hosted, installable on Docker Hub and Umbrel.

Canonical page: https://ourlocalhost.com/app/3712/nostr-relay

## Description

Nostr Relay is an Umbrel app that runs a private, self-hosted Nostr relay to store and back up your Nostr messages and events. It lets Nostr clients such as Damus and Amethyst connect to your own relay for continuous backups, and can import your existing activity from public relays. It is powered by an open-source Nostr relay project and is aimed at homelab users who want their Nostr data kept on their own hardware rather than on public servers.

## Platform availability

Available on 1 of 10 platforms: Umbrel.

## Health score

74/100 (Good), based on 5 of 5 factors.
- Maintained: 100 (last commit 35 days ago)
- Popular: 37 (66 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 80 (1 GB minimum RAM, runs on ARM)
- Security check: 100 (no serious findings, CI, tests)

## Links

- GitHub: https://github.com/mattn/nostr-relay
- Docker Hub: https://hub.docker.com/r/getumbrel/umbrel-nostr-relay
- Umbrel: https://apps.umbrel.com/app/nostr-relay

## Common questions

### What must I configure in a Nostr client before it can use my relay?

Set your private key first, then add the relay server address and start the connection. Without at least one connected relay, the client has nowhere to send or read Nostr messages.

### What should I check if I cannot see someone's posts on my relay?

Check that your client and the other person use overlapping relays, add the relays shown on their profile, or search by their npub. They may also have blocked you.

### Can I run my relay behind Nginx with TLS?

Yes, a Nostr relay can be set up with an Nginx reverse proxy and SSL/TLS. The referenced setup guide also includes information for controlling and administering the relay.

### Should I rely on public relays to retain my Nostr notes?

A hosted relay controls what events it stores, how long it retains them, and whether it stays online.

---
Source: Our Local Host (https://ourlocalhost.com/app/3712/nostr-relay), the self-hosted and open-source app directory.
