Commit 62556065fec94029f943b386bebf11f80ac8d829
revert config
mix irving committed on 8/15/2017, 4:40:32 AMParent: 2cbf6075c6387cd0e72c91a39e1bbcbc91d0f4fa
Files changed
config.js | changed |
config.js | ||
---|---|---|
@@ -2,11 +2,10 @@ | ||
2 | 2 | const nest = require('depnest') |
3 | 3 | const ssbKeys = require('ssb-keys') |
4 | 4 | const Path = require('path') |
5 | 5 | |
6 | -const appName = process.env.ssb_appname || 'ticktack-ssb' | |
7 | -// const opts = process.env.ssb_appname== 'ssb' ? {} :{ | |
8 | -const opts = { | |
6 | +const appName = 'ssb' //'ticktack-ssb' | |
7 | +const opts = process.env.ssb_appname== 'ssb' ? {} :{ | |
9 | 8 | port: 43750, |
10 | 9 | blobsPort: 43751, |
11 | 10 | ws: { |
12 | 11 | port: 43751 |
@@ -17,9 +16,9 @@ | ||
17 | 16 | exports.create = (api) => { |
18 | 17 | var config |
19 | 18 | return nest('config.sync.load', () => { |
20 | 19 | if (!config) { |
21 | - config = Config(appName, opts) | |
20 | + config = Config(process.env.ssb_appname || appName, opts) | |
22 | 21 | config.keys = ssbKeys.loadOrCreateSync(Path.join(config.path, 'secret')) |
23 | 22 | |
24 | 23 | // HACK: fix offline on windows by specifying 127.0.0.1 instead of localhost (default) |
25 | 24 | config.remote = `net:127.0.0.1:${config.port}~shs:${config.keys.id.slice(1).replace('.ed25519', '')}` |
Built with git-ssb-web