From 3bf2b88dac721279dd7277282b75c8af6e3e6a3c Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 9 Aug 2021 10:11:21 +0100 Subject: [PATCH] Fix wiring for keyserver in API mode --- cmd/dendrite-monolith-server/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/dendrite-monolith-server/main.go b/cmd/dendrite-monolith-server/main.go index bb313e57a..4d8e2ee15 100644 --- a/cmd/dendrite-monolith-server/main.go +++ b/cmd/dendrite-monolith-server/main.go @@ -120,6 +120,11 @@ func main() { Impl: userAPI, } } + // needs to be after the SetUserAPI call above + if base.UseHTTPAPIs { + keyserver.AddInternalRoutes(base.InternalAPIMux, keyAPI) + keyAPI = base.KeyServerHTTPClient() + } eduInputAPI := eduserver.NewInternalAPI( base, cache.New(), userAPI,