For the complete documentation index, see llms.txt. This page is also available as Markdown.

Vector Node Setup (Nostr)

A Guide to Setup & Run a Full Node on Nostr for Vector (Linux)

This is a simple guide teaching you how to install and self-host a full Nostr Node that supports the resiliency of the entire network and Vector. In this guide, it will cover a step-by-step setup a on virtual private server (VPS) that is running Linux (Ubuntu 22).


Setup Your Nostr Relay Node

Prerequisite

Setup VPS

In order to run a Nostr Relay Node, you will need to have a server or dedicated device that is ideally running all the time to really support the network that is reliable and consistent. That is why most users tend to run a virtual private server (VPS) and pay the monthly fee for others to host.

Requirements

  • Virtual Private Server (VPS)

    • Recommended: SSD or NVMe with 20GB or more and 4GB of RAM

    • Recommended: with credits already topped up (ensures higher uptime)

    • Examples: Njalla, BlueVPS, AWS (*Order of Privacy)

  • Domain (User-Owned)

    • Required in order to set the DNS records and host your node

    • Example: nostr.mydomain.com

  • SSH Client & Terminal (Remote Access)


Step 1

Installing Nginx with SSL for Your Nostr Relay

Here's a step-by-step guide for Ubuntu 22.04:

1. Install Nginx and Certbot

2. Create the Nginx Configuration

Paste this configuration:

3. Enable the Site

4. Get the SSL Certificate

Certbot will prompt you for an email and ask if you want to redirect HTTP to HTTPS (choose yes).

5. Verify Auto-Renewal

Certbot automatically installs a systemd timer for renewal. Verify it's active:

You can also test the renewal process:


Step 2

Compile

Run

Customize

Here is an example that you can copy and paste in your strfry.conf file that will allow you to change and customize certain aspects like the name, description, contact, image, and more. Additionally, this will allow you for you to keep your node running all the time and exit your remote control terminal.

Any Questions? Join the Vector Community Discord.

Last updated