git ssb

2+

mixmix / ticktack



Commit 62556065fec94029f943b386bebf11f80ac8d829

revert config

mix irving committed on 8/15/2017, 4:40:32 AM
Parent: 2cbf6075c6387cd0e72c91a39e1bbcbc91d0f4fa

Files changed

config.jschanged
config.jsView
@@ -2,11 +2,10 @@
22 const nest = require('depnest')
33 const ssbKeys = require('ssb-keys')
44 const Path = require('path')
55
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' ? {} :{
98 port: 43750,
109 blobsPort: 43751,
1110 ws: {
1211 port: 43751
@@ -17,9 +16,9 @@
1716 exports.create = (api) => {
1817 var config
1918 return nest('config.sync.load', () => {
2019 if (!config) {
21- config = Config(appName, opts)
20+ config = Config(process.env.ssb_appname || appName, opts)
2221 config.keys = ssbKeys.loadOrCreateSync(Path.join(config.path, 'secret'))
2322
2423 // HACK: fix offline on windows by specifying 127.0.0.1 instead of localhost (default)
2524 config.remote = `net:127.0.0.1:${config.port}~shs:${config.keys.id.slice(1).replace('.ed25519', '')}`

Built with git-ssb-web