Vector Node Setup (Nostr)

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

circle-exclamation

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


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.

circle-info

Last updated