Comment on hardcoding roomserver to HTTP

This commit is contained in:
Mark Haines 2017-06-19 13:30:35 +01:00
parent bfb490fac1
commit c205b14c92
2 changed files with 9 additions and 0 deletions

View file

@ -61,6 +61,10 @@ func main() {
cfg.Matrix.ServerName, cfg.Matrix.KeyID, cfg.Matrix.PrivateKey,
)
// Hard code the roomserver to talk HTTP for now.
// If we support HTTPS we need to think of a practical way to do certificate validation.
// People setting up servers shouldn't need to get a certificate valid for the public
// internet for an internal API.
queryAPI := api.NewRoomserverQueryAPIHTTP("http://"+string(cfg.Listen.RoomServer), nil)
accountDB, err := accounts.NewDatabase(string(cfg.Database.Account), cfg.Matrix.ServerName)
if err != nil {

View file

@ -62,6 +62,11 @@ func main() {
},
KeyDatabase: keyDB,
}
// Hard code the roomserver to talk HTTP for now.
// If we support HTTPS we need to think of a practical way to do certificate validation.
// People setting up servers shouldn't need to get a certificate valid for the public
// internet for an internal API.
queryAPI := api.NewRoomserverQueryAPIHTTP("http://"+string(cfg.Listen.RoomServer), nil)
roomserverProducer, err := producers.NewRoomserverProducer(