Files: 32d251a78db95ceb448ed94743c944b8be3de181 / 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