Skip to content

webrecorder/dat-share

Repository files navigation

dat-share

Webrecorders dat integration backend.

Installation

To use this project you must first install its dependencies

$ yarn install
# or "npm install"

Usage

dat-share provides a cli to help you use this project.

The commands available to you are displayed below

$ ./run.js --help
Usage: run [options]

Options:
  -V, --version            output the version number
  -p, --port [port]        The port the api server is to bind to (default: 3000)
  -h, --host [host]        The host address the server is listen on (default: "127.0.0.1")
  -s, --swarm-port [port]  The port the swarm is to bind to (default: 3282)
  -r, --rootDir <dir>      The root directory that contains the contents to be shared via dat
  -l --log                 should logging be enabled for both the api server and swarm manager
  --help                   output usage information

Some configuration of the server can be done via the environment variables listed below

  • SWARM_API_HOST: the host the api server will use (e.g. 127.0.0.1)
  • SWARM_API_PORT: the port the api server will listen on (e.g. 3000)
  • SWARM_PORT: the port the swarm will listen on (e.g. 3282)
  • SWARM_ROOT: the root directory that contains the contents to be shared via dat
  • LOG: should logging be enabled (exists yes, does not exists no)
  • Debug=SwarmManager: enables logging of the actions performed by the swarm manager only

About

A prototype server to swarm multiple DATs for Webrecorder

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy