Commit 2536dec31ad49889ae8b471204a9c2a54e23ecd9
reset to working ws settings
Ev Bogue committed on 9/26/2018, 4:14:04 PMParent: 6bd788b082e76294e5c7296c68047596e481dcfc
Files changed
bin.js | changed |
config/inject.js | changed |
bin.js | ||
---|---|---|
@@ -41,18 +41,17 @@ | ||
41 | 41 | .use(require('ssb-ebt')) |
42 | 42 | .use(require('ssb-search')) |
43 | 43 | .use(require('scuttlebot/plugins/invite')) |
44 | 44 | .use(require('scuttlebot/plugins/local')) |
45 | - //.use(require('ssb-ws')) | |
46 | 45 | .use(require('decent-ws')) |
47 | 46 | .use({ |
48 | 47 | name: 'serve', |
49 | 48 | version: '1.0.0', |
50 | 49 | init: function (sbot) { |
51 | 50 | sbot.ws.use(function (req, res, next) { |
52 | 51 | var send = config |
53 | 52 | delete send.keys // very important to keep this, as it removes the server keys from the config before broadcast |
54 | - send.address = sbot.getAddress('ws') | |
53 | + send.address = sbot.ws.getAddress() | |
55 | 54 | sbot.invite.create({modern: true}, function (err, cb) { |
56 | 55 | send.invite = cb |
57 | 56 | }) |
58 | 57 | if(req.url == '/') |
config/inject.js | ||
---|---|---|
@@ -69,14 +69,14 @@ | ||
69 | 69 | connections: 3 |
70 | 70 | }, |
71 | 71 | connections: { |
72 | 72 | incoming: { |
73 | - net: [{ port: 8008, scope: "public", transform: "shs" }], | |
74 | - ws: [{ scope: "public", transform: "shs" }] | |
73 | + net: [{ port: 8008, host: "localhost", scope: "local", "transform": "shs" }], | |
74 | + ws: [{ "scope": "public", "transform": "shs" }] | |
75 | 75 | }, |
76 | 76 | outgoing: { |
77 | 77 | net: [{ transform: "shs" }], |
78 | - ws: [{ transform: "shs" }] | |
78 | + ws: [{ "scope": "public", "transform": "shs" }] | |
79 | 79 | } |
80 | 80 | }, |
81 | 81 | path: path.join(HOME, '.' + name), |
82 | 82 | timers: { |
Built with git-ssb-web