I am using docker-compose to create a nginx proxy and a go-neb container, with a config file.
The nginx proxy is used to for SSL.
My "architecture" is as follows
# The list of clients which Go-NEB is aware of.
# Delete or modify this list as appropriate.
# See the docs for /configureClient for the full list of options:
# https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#ClientConfig
clients:
- UserID: "@goneb:MY_EMS.ems.host"
AccessToken: "MY_EMS_TOKEN"
DeviceID: "MY_DEVICE_ID"
HomeserverURL: "https://MY_EMS.ems.host"
Sync: true
AutoJoinRooms: true
DisplayName: "My Bot"
# The list of realms which Go-NEB is aware of.
# Delete or modify this list as appropriate.
# See the docs for /configureAuthRealm for the full list of options:
# https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#ConfigureAuthRealmRequest
realms:
- ID: "github_realm"
Type: "github"
Config: {} # No need for client ID or Secret as Go-NEB isn't generating OAuth URLs
# The list of *authenticated* sessions which Go-NEB is aware of.
# Delete or modify this list as appropriate.
# The full list of options are shown below: there is no single HTTP endpoint
# which maps to this section.
# https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#Session
sessions:
- SessionID: "your_github_session"
RealmID: "github_realm"
UserID: "@goneb:MY_EMS.ems.host"
Config:
# Populate these fields by generating a "Personal Access Token" on github.com
AccessToken: "MY_ACCESS_TOKEN"
Scopes: "admin:org_hook,admin:repo_hook,repo,user"
# The list of services which Go-NEB is aware of.
# Delete or modify this list as appropriate.
# See the docs for /configureService for the full list of options:
# https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#ConfigureServiceRequest
services:
- ID: "example echo"
Type: "echo"
UserID: "@goneb:MY_EMS.ems.host"
Config:
The problem
I am trying to configure my own go-neb instance to connect to my EMS server (https://ems.element.io/), but i get the following error.
(
dev.MY_SERVER.com
andMY_EMS.ems.host
are used as placeholders.)I am using docker-compose to create a nginx proxy and a go-neb container, with a config file. The nginx proxy is used to for SSL. My "architecture" is as follows
https://dev.MY_SERVER.com:9050
↓
nginx container with ssl certificates
↓
proxy to `localhost:4050`
↓
go-neb container with config file
I have checked that the nginx proxy is reachable.
Additional Information
Below is the Dockerfile for go-neb.
Below is the go-neb-config.yaml file
Below is the nginx configuration file
Below is the docker-compose.yml