aboutsummaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
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)
})