var Path = require('path') var ssbKeys = require('ssb-keys') var appName = process.env.ssb_appname var config = require('ssb-config/inject')(appName, { server: !(process.argv.includes('-g') || process.argv.includes('--use-global-ssb')), port: 8008, blobsPort: 7777 }) config.keys = ssbKeys.loadOrCreateSync( Path.join(config.path, 'secret') ) module.exports = config