mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-17 03:43:11 -06:00
Restore original HTTP listener in monolith
This commit is contained in:
parent
8e67534959
commit
6c1c12b238
|
|
@ -17,7 +17,6 @@ package main
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/matrix-org/dendrite/appservice"
|
"github.com/matrix-org/dendrite/appservice"
|
||||||
"github.com/matrix-org/dendrite/clientapi"
|
"github.com/matrix-org/dendrite/clientapi"
|
||||||
|
|
@ -92,14 +91,7 @@ func main() {
|
||||||
// Expose the matrix APIs directly rather than putting them under a /api path.
|
// Expose the matrix APIs directly rather than putting them under a /api path.
|
||||||
go func() {
|
go func() {
|
||||||
logrus.Info("Listening on ", *httpBindAddr)
|
logrus.Info("Listening on ", *httpBindAddr)
|
||||||
serv := http.Server{
|
logrus.Fatal(http.ListenAndServe(*httpBindAddr, nil))
|
||||||
Addr: *httpBindAddr,
|
|
||||||
ReadTimeout: time.Second * 300,
|
|
||||||
ReadHeaderTimeout: time.Second * 300,
|
|
||||||
WriteTimeout: time.Second * 300,
|
|
||||||
IdleTimeout: time.Second * 300,
|
|
||||||
}
|
|
||||||
logrus.Fatal(serv.ListenAndServe())
|
|
||||||
}()
|
}()
|
||||||
// Handle HTTPS if certificate and key are provided
|
// Handle HTTPS if certificate and key are provided
|
||||||
go func() {
|
go func() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue