Quick Start
  • Quick Start
    • Account Setup
    • Start with the Portal
      • Log in to Dashboard
      • Uploads Overview
        • Upload a File
        • Upload a Folder
      • Get Files
      • Delete Files
    • Start with the API
      • Obtain an API Key
      • Obtain an Access Token
      • Use the Access Token
  • Developer Documentation
  • Concepts
    • What is dStor?
    • Why dStor?
    • dStor Components
      • Directories
      • Folders
      • Files
      • Billing
  • Paying for dStor
    • Overview
  • Storage Node Operation Guide
    • Storage Node Operation
      • Node Operator Requirements
      • Become a Node Operator
      • Storage Node Install Pre-prequirements
      • Create User to Install
      • Create Directory & Install dStor
      • More Useful Commands
      • How it Works
  • Social
Powered by GitBook
On this page
  • Create your IPFS Directory Manually
  • Install dstor-storage-node
  1. Storage Node Operation Guide
  2. Storage Node Operation

Create Directory & Install dStor

Create your IPFS Directory Manually

Best practice dictates that this directory should be on a file system that is separate from your OS. For example:

mkdir /ipfs mount /dev/[device array] /ipfs chown -R username

Install dstor-storage-node

Clone the git repo in your choice dStor directory, for example: /home/dstor

git clone https://github.com/goodblockio/dstor-storage-node cd dstor-storage-node

Editpre-reqs.sh and setup.sh to your needs. Fill out the IPFS directory, and read the comments.

source ./pre-reqs.sh

Edit server_name "nodename.dstor.cloud;" inside storagenode.nginx AND inside setup.sh to your node name. This will set up port openings, nginx config, certbot, ipfs and wireguard. Then Run:

./setup.sh

Use .env.example file to create your own .env file. If you have questions about the .env values, you can always ask our support team for help.

cp .env.example .env

To Start the node server: run pm2 restart ecosystem.config.js from dstor-storage-node folder

To see logs use pm2 logs

To restart the node server: run pm2 restart ecosystem.config.js --update-env from dstor-storage-node folder

PreviousCreate User to InstallNextMore Useful Commands

Last updated 2 years ago