Set Listen address for all services in HTTP monolith mode

This commit is contained in:
Neil Alexander 2020-08-04 16:43:05 +01:00
parent c00bcb3826
commit 6d3eb55b45
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -54,13 +54,17 @@ func main() {
// the API endpoints. They'll listen on the same port as the monolith // the API endpoints. They'll listen on the same port as the monolith
// itself. // itself.
addr := config.Address(*httpBindAddr) addr := config.Address(*httpBindAddr)
cfg.RoomServer.Listen = addr
cfg.EDUServer.Listen = addr
cfg.AppServiceAPI.Listen = addr cfg.AppServiceAPI.Listen = addr
cfg.FederationSender.Listen = addr cfg.ClientAPI.Listen = addr
cfg.ServerKeyAPI.Listen = addr
cfg.CurrentStateServer.Listen = addr cfg.CurrentStateServer.Listen = addr
cfg.EDUServer.Listen = addr
cfg.FederationAPI.Listen = addr
cfg.FederationSender.Listen = addr
cfg.KeyServer.Listen = addr cfg.KeyServer.Listen = addr
cfg.MediaAPI.Listen = addr
cfg.RoomServer.Listen = addr
cfg.ServerKeyAPI.Listen = addr
cfg.SyncAPI.Listen = addr
} }
base := setup.NewBaseDendrite(cfg, "Monolith", *enableHTTPAPIs) base := setup.NewBaseDendrite(cfg, "Monolith", *enableHTTPAPIs)