Code Monkey home page Code Monkey logo

ssb-config's Introduction

ssb-config

Configuration module used by scuttlebot.

example

var config = require('ssb-config')

//if you want to set up a test network, that
//doesn't collide with main ssb pass the name of that network in.

var test_config = require('ssb-config/inject')('testnet', {port: 9999})
//you can also pass a second argument, which overrides the default defaults.

Configuration

  • host (string) The domain or ip address for sbot. Defaults to your public ip address.
  • port (string|number) The port for sbot. Defaults to 8008.
  • timeout: (number) Number of milliseconds a replication stream can idle before it's automatically disconnected. Defaults to 30000.
  • pub (boolean) Replicate with pub servers. Defaults to true.
  • local (boolean) Replicate with local servers found on the same network via udp. Defaults to true.
  • friends.dunbar (number) Dunbar's number. Number of nodes your instance will replicate. Defaults to 150.
  • friends.hops (number) How many friend of friend hops to replicate. Defaults to 3.
  • gossip.connections (number) How many other nodes to connect with at one time. Defaults to 2.
  • path (string) Path to the application data folder, which contains the private key, message attachment data (blobs) and the leveldb backend. Defaults to $HOME/.ssb.
  • master (array) Pubkeys of users who, if they connect to the Scuttlebot instance, are allowed to command the primary user with full rights. Useful for remotely operating a pub. Defaults to [].
  • logging.level (string) How verbose should the logging be. Possible values are error, warning, notice, and info. Defaults to notice.

There are some configuration options for the sysadmins out there. All configuration is loaded via rc. You can pass any configuration value in as cli arg, env var, or in a file.

License

MIT

ssb-config's People

Contributors

dominictarr avatar pfrazee avatar ralphtheninja avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.