Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connections need to be adjusted for viewer #31

Open
black-puppydog opened this issue Oct 2, 2019 · 0 comments
Open

Connections need to be adjusted for viewer #31

black-puppydog opened this issue Oct 2, 2019 · 0 comments

Comments

@black-puppydog
Copy link

black-puppydog commented Oct 2, 2019

I had trouble doing npm install for ssb-viewer (manual setup) because port 8989 could not be reached for retrieving some blobs. So I had to add that connection to the config file. While I was at it, I also changed the host fields to :: instead of 0.0.0.0. There might be issues with this, see ssbc/ssb-config#53, but for me it works.

Full config after modification:

{
  "plugins": {
    "ssb-viewer": true
  },
  "viewer": {
    "host": "::"
  },
  "connections": {
    "incoming": {
      "net": [
        {
          "scope": ["device", "public"],
          "host": "::",
          "external": ["muchmuch.coffee"],
          "transform": "shs",
          "port": 8008
        }
      ],
      "ws":[
        { "host": "::",
          "port": 8989,
          "scope": [ "device", "local", "public" ],
          "transform": "shs" } ]
    },
    "outgoing": {
      "net": [
        {
          "transform": "shs"
        }
      ]
    }
  }
}

Not sure if the scope fields are at the right values honestly, but since everything has "transform": "shs" I should be fine, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant