Files: 99aead0a4c4797532b2986ba64d8c30f3d3c5993 / config.js
379 bytesRaw
1 | var Path = require('path') |
2 | var ssbKeys = require('ssb-keys') |
3 | |
4 | var appName = process.env.ssb_appname |
5 | |
6 | var config = require('ssb-config/inject')(appName, { |
7 | server: !(process.argv.includes('-g') || process.argv.includes('--use-global-ssb')), |
8 | port: 8008, |
9 | blobsPort: 7777 |
10 | }) |
11 | |
12 | config.keys = ssbKeys.loadOrCreateSync( |
13 | Path.join(config.path, 'secret') |
14 | ) |
15 | |
16 | module.exports = config |
17 |
Built with git-ssb-web