Skip to content

Latest commit

 

History

History
 
 

server-node

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Peerbit node

A non-browser node with a CLI and server API so you can manage your non-browser node with easy

Features

  • Request SSL certificate and setup NGINX config so that your node can be accessed from a browser
  • Manage topics
  • Manage VPC/Networks (add/revoke trust)

This CLI does not work in Windows at the moment. As of now this CLI have only tested with Ubuntu 22.04.

Run a node

Needs port forwarding on 80, 443 (for the console/frontend) and 4002 (for IPFS)

Install node version > v.16.15

(E.g. Ubuntu 19)

curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash - &&\
sudo apt-get install -y nodejs

then install the CLI

npm install -g @dao-xyz/peerbit-node    

Start the node in a background process

peerbit start > log.txt 2>&1 &

or if you just want an IPFS node as a relay in a separate process

peerbit start --relay  > log.txt 2>&1 &

(you can try to run docker exec ipfs_host ipfs id) to check ipfs is running in the background)

Setup a test domain (so can access the node)

sudo peerbit domain test --email YOUR_EMAIL 

(sudo is needed because docker will be installed if it is not available)

After a while a domain will be written out that you can access and learn more about your peer

If you ssh'ed into a some server, remember to do this before exiting the terminal:

Remove all jobs from the shell and make them ignore SIGHUP

disown -ah

More documentation

Run

peerbit --help