Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Setup instructions for room server #145

Closed
KyleMaas opened this issue Jan 30, 2021 · 6 comments
Closed

Setup instructions for room server #145

KyleMaas opened this issue Jan 30, 2021 · 6 comments
Labels
documentation Improvements or additions to documentation

Comments

@KyleMaas
Copy link
Collaborator

I'm having a hard time figuring out how to add WebSockets to the ssb-room Docker image. I've tried changing config.js inside of the image. I've tried rebuilding the image with config.js as part of it (which is likely also necessary because I need another port open). I've tried linking the config.js of the Docker image to an area in the parent-writable area so I could change it. I just cannot seem to get it to work. I'd love to submit a patch to fix staltz/ssb-room#26 but just can't seem to figure out how to do it.

But aside from that, we need some documentation on how to do this in this project as well so people who already have a room or pub server know how to reconfigure to be compatible with ssb-browser-demo.

@arj03 Are there any other differences between your configuration and stock other than that one extra "ws" line in the configuration you posted before?

@arj03
Copy link
Owner

arj03 commented Jan 31, 2021

There is. I'll get back to you with that later tonight. The good news is that we are working on rooms 2.0 and I think that should make it a bit easier to enable web sockets by default. It will use the go server instead.

@KyleMaas
Copy link
Collaborator Author

Perfect. Thanks!

@arj03
Copy link
Owner

arj03 commented Jan 31, 2021

Here is the diff I'm using: https://gist.github.com/arj03/cedf85cff361ce0f08d151bd7b7d0adb. I did not try to upstream it because as said, there will soon be a version 2.0.

@KyleMaas
Copy link
Collaborator Author

Ah, so it needs ssb-ws pulled in. I thought that was in there by default. That's probably what I was doing wrong. I'll have to give it a try later. Thanks!

@KyleMaas KyleMaas added the documentation Improvements or additions to documentation label Feb 1, 2021
@KyleMaas
Copy link
Collaborator Author

KyleMaas commented Feb 1, 2021

That looks a lot better. Let me see what I can do to put this together into something more user-friendly.

@KyleMaas
Copy link
Collaborator Author

KyleMaas commented Feb 1, 2021

Fixed with #149.

@KyleMaas KyleMaas closed this as completed Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants