aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json3
-rw-r--r--server.js4
2 files changed, 5 insertions, 2 deletions
diff --git a/package.json b/package.json
index 9bb2c10..f5029cb 100644
--- a/package.json
+++ b/package.json
@@ -25,7 +25,8 @@
"stream-to-pull-stream": "^1.7.2"
},
"devDependencies": {
- "ssb-client": "^4.4.0"
+ "ssb-client": "^4.4.0",
+ "ssb-config": "^2.2.0"
},
"author": "cel",
"homepage": "https://git.scuttlebot.io/%25YAg1hicat%2B2GELjE2QJzDwlAWcx0ML%2B1sXEdsWwvdt8%3D.sha256",
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)
})