diff options
author | aditsachde <23707194+aditsachde@users.noreply.github.com> | 2019-10-02 05:29:27 -0400 |
---|---|---|
committer | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2019-10-02 10:29:27 +0100 |
commit | 7d77538ca4dad73594bc20d11b7f85dc0693d7a5 (patch) | |
tree | 5e4e36fb3117a0d8ff200e0636a35b5bec860f4e /cmd/dendrite-public-rooms-api-server | |
parent | 3e2bb8bf2fac3173f45a98370eebfc266f55c958 (diff) |
patch dendrite microservices with bind config (#795)
This PR adds a block in the dendrite config for the services to bind to. The microservices should bind to the addresses in the bind block, and will be contacted at the address in the listen block.
This fixes an issue with the microservices and kubernetes services.
Diffstat (limited to 'cmd/dendrite-public-rooms-api-server')
-rw-r--r-- | cmd/dendrite-public-rooms-api-server/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/dendrite-public-rooms-api-server/main.go b/cmd/dendrite-public-rooms-api-server/main.go index 63e1f40b..b60eed92 100644 --- a/cmd/dendrite-public-rooms-api-server/main.go +++ b/cmd/dendrite-public-rooms-api-server/main.go @@ -28,5 +28,6 @@ func main() { publicroomsapi.SetupPublicRoomsAPIComponent(base, deviceDB) - base.SetupAndServeHTTP(string(base.Cfg.Listen.PublicRoomsAPI)) + base.SetupAndServeHTTP(string(base.Cfg.Bind.PublicRoomsAPI), string(base.Cfg.Listen.PublicRoomsAPI)) + } |