Files: 8b6827337d6c9a677261c5987cb95bbee685d870 / server.js
983 bytesRaw
1 | process.once('message', function (config) { |
2 | var createSbot = require('scuttlebot') |
3 | .use(require('scuttlebot/plugins/master')) |
4 | .use(require('./control')) |
5 | .use(require('./autoclose')) |
6 | |
7 | if (!config.skipPlugins) { |
8 | var plugins = require('scuttlebot/plugins/plugins') |
9 | createSbot = createSbot |
10 | .use(plugins) |
11 | .use(require('scuttlebot/plugins/gossip')) |
12 | .use(require('scuttlebot/plugins/replicate')) |
13 | .use(require('ssb-friends')) |
14 | .use(require('ssb-blobs')) |
15 | .use(require('scuttlebot/plugins/invite')) |
16 | .use(require('scuttlebot/plugins/local')) |
17 | .use(require('scuttlebot/plugins/logging')) |
18 | .use(require('ssb-private')) |
19 | .use(require('ssb-links')) |
20 | .use(require('ssb-query')) |
21 | .use(require('ssb-ws')) |
22 | plugins.loadUserPlugins(createSbot, config) |
23 | } |
24 | |
25 | var server = createSbot(config) |
26 | |
27 | process.send({ |
28 | manifest: server.getManifest(), |
29 | address: server.getAddress(), |
30 | }) |
31 | process.disconnect() |
32 | }) |
33 |
Built with git-ssb-web