aboutsummaryrefslogtreecommitdiff
path: root/cmd/dendrite-media-api-server/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dendrite-media-api-server/main.go')
-rw-r--r--cmd/dendrite-media-api-server/main.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/cmd/dendrite-media-api-server/main.go b/cmd/dendrite-media-api-server/main.go
index 1bbb62bd..f442abfa 100644
--- a/cmd/dendrite-media-api-server/main.go
+++ b/cmd/dendrite-media-api-server/main.go
@@ -28,8 +28,11 @@ func main() {
userAPI := base.UserAPIClient()
client := gomatrixserverlib.NewClient(cfg.FederationSender.DisableTLSValidation)
- mediaapi.AddPublicRoutes(base.PublicAPIMux, &base.Cfg.MediaAPI, userAPI, client)
-
- base.SetupAndServeHTTP(string(base.Cfg.MediaAPI.Bind), string(base.Cfg.MediaAPI.Listen))
+ mediaapi.AddPublicRoutes(base.PublicMediaAPIMux, &base.Cfg.MediaAPI, userAPI, client)
+ base.SetupAndServeHTTP(
+ base.Cfg.MediaAPI.InternalAPI.Listen,
+ base.Cfg.MediaAPI.ExternalAPI.Listen,
+ nil, nil,
+ )
}