aboutsummaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-07 20:36:54 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-08 12:09:00 -0500
commitd92635223a233a1bc8d15e6b1d83e50fa74e5e32 (patch)
tree8d569498198469ecba85f0de440cbbc6f19bea8f /server.js
parent606ff997bc4249d4ef0baae2e6336a739c3d64c7 (diff)
downloadpatchfoo-d92635223a233a1bc8d15e6b1d83e50fa74e5e32.tar.gz
patchfoo-d92635223a233a1bc8d15e6b1d83e50fa74e5e32.zip
Pass config as opts
Diffstat (limited to 'server.js')
-rw-r--r--server.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.js b/server.js
index 66f503f..b64b14f 100644
--- a/server.js
+++ b/server.js
@@ -1,4 +1,6 @@
-require('ssb-client')(function (err, sbot, config) {
+var createConfig = require('ssb-config/inject')
+var config = createConfig(process.env.ssb_appname)
+require('ssb-client')(config, function (err, sbot) {
if (err) throw err
require('.').init(sbot, config)
})