Files: 5408d3118894220a8d70afa1754390b36514ba45 / server.js
1350 bytesRaw
1 | // formerly background-process.js |
2 | var fs = require('fs') |
3 | var Path = require('path') |
4 | var electron = require('electron') |
5 | |
6 | console.log('STARTING SBOT') |
7 | |
8 | var createSbot = require('ssb-server') |
9 | .use(require('ssb-server/plugins/master')) |
10 | .use(require('ssb-server/plugins/logging')) |
11 | .use(require('ssb-server/plugins/unix-socket')) |
12 | .use(require('ssb-server/plugins/no-auth')) |
13 | .use(require('ssb-server/plugins/onion')) |
14 | .use(require('ssb-server/plugins/local')) |
15 | |
16 | .use(require('ssb-legacy-conn')) |
17 | .use(require('ssb-replicate')) |
18 | .use(require('ssb-friends')) |
19 | .use(require('ssb-invite')) |
20 | |
21 | .use(require('ssb-blobs')) |
22 | .use(require('ssb-ws')) |
23 | |
24 | .use(require('ssb-about')) |
25 | .use(require('ssb-backlinks')) |
26 | .use(require('ssb-chess-db')) |
27 | .use(require('ssb-ebt')) |
28 | .use(require('ssb-friend-pub')) |
29 | .use(require('ssb-meme')) |
30 | .use(require('ssb-private')) |
31 | .use(require('ssb-query')) |
32 | .use(require('ssb-search')) |
33 | .use(require('ssb-suggest')) |
34 | |
35 | .use(require('ssb-unread')) |
36 | // .use(require('ssb-mutual')) // this is has recursion problems atm |
37 | |
38 | // pull config options out of depject |
39 | var config = require('./config').create().config.sync.load() |
40 | |
41 | var sbot = createSbot(config) |
42 | var manifest = sbot.getManifest() |
43 | fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest)) |
44 | electron.ipcRenderer.send('server-started') |
45 |
Built with git-ssb-web