Files: 8c71e9c979626faf9b3d2a3f9293a285ba56d033 / 2_actual_friends / config.js
428 bytesRaw
1 | const Config = require('ssb-config/inject') |
2 | // const Config = require('ssb-config') |
3 | const ssbKeys = require('ssb-keys') |
4 | const Path = require('path') |
5 | |
6 | const appName = "ssb" // <<< NOTE THIS IS YOUR DEFAULT IDENTITY |
7 | const opts = null // can set things in here |
8 | |
9 | const config = Config(appName, opts) |
10 | Object.assign(config, { |
11 | appName, |
12 | keys: ssbKeys.loadOrCreateSync(Path.join(config.path, 'secret')), |
13 | }) |
14 | |
15 | module.exports = config |
16 |
Built with git-ssb-web