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-federation-api-server/main.go | |
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-federation-api-server/main.go')
-rw-r--r-- | cmd/dendrite-federation-api-server/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/dendrite-federation-api-server/main.go b/cmd/dendrite-federation-api-server/main.go index 014ed334..c83845d2 100644 --- a/cmd/dendrite-federation-api-server/main.go +++ b/cmd/dendrite-federation-api-server/main.go @@ -39,5 +39,6 @@ func main() { alias, input, query, asQuery, ) - base.SetupAndServeHTTP(string(base.Cfg.Listen.FederationAPI)) + base.SetupAndServeHTTP(string(base.Cfg.Bind.FederationAPI), string(base.Cfg.Listen.FederationAPI)) + } |