git ssb

2+

ev / mvd



Commit 2536dec31ad49889ae8b471204a9c2a54e23ecd9

reset to working ws settings

Ev Bogue committed on 9/26/2018, 4:14:04 PM
Parent: 6bd788b082e76294e5c7296c68047596e481dcfc

Files changed

bin.jschanged
config/inject.jschanged
bin.jsView
@@ -41,18 +41,17 @@
4141 .use(require('ssb-ebt'))
4242 .use(require('ssb-search'))
4343 .use(require('scuttlebot/plugins/invite'))
4444 .use(require('scuttlebot/plugins/local'))
45- //.use(require('ssb-ws'))
4645 .use(require('decent-ws'))
4746 .use({
4847 name: 'serve',
4948 version: '1.0.0',
5049 init: function (sbot) {
5150 sbot.ws.use(function (req, res, next) {
5251 var send = config
5352 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()
5554 sbot.invite.create({modern: true}, function (err, cb) {
5655 send.invite = cb
5756 })
5857 if(req.url == '/')
config/inject.jsView
@@ -69,14 +69,14 @@
6969 connections: 3
7070 },
7171 connections: {
7272 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" }]
7575 },
7676 outgoing: {
7777 net: [{ transform: "shs" }],
78- ws: [{ transform: "shs" }]
78 + ws: [{ "scope": "public", "transform": "shs" }]
7979 }
8080 },
8181 path: path.join(HOME, '.' + name),
8282 timers: {

Built with git-ssb-web