mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-29 09:43:10 -06:00
* Use one goroutine per user to avoid locking up the entire server for one bad push gateway. * Split pushing by format. * Send one device per push. Sytest does not support coalescing multiple devices into one push. Matches Synapse. Either we change Sytest, or remove the group-by-url-and-format logic. * Write OutputNotificationData from push server. Sync API is already the consumer.
28 lines
944 B
Go
28 lines
944 B
Go
package config
|
|
|
|
type PushServer struct {
|
|
Matrix *Global `yaml:"-"`
|
|
|
|
InternalAPI InternalAPIOptions `yaml:"internal_api"`
|
|
|
|
Database DatabaseOptions `yaml:"database"`
|
|
|
|
// DisableTLSValidation disables the validation of X.509 TLS certs
|
|
// on remote Push gateway endpoints. This is not recommended in
|
|
// production!
|
|
DisableTLSValidation bool `yaml:"disable_tls_validation"`
|
|
}
|
|
|
|
func (c *PushServer) Defaults() {
|
|
c.InternalAPI.Listen = "http://localhost:7783"
|
|
c.InternalAPI.Connect = "http://localhost:7783"
|
|
c.Database.Defaults(10)
|
|
c.Database.ConnectionString = "file:pushserver.db"
|
|
}
|
|
|
|
func (c *PushServer) Verify(configErrs *ConfigErrors, isMonolith bool) {
|
|
checkURL(configErrs, "room_server.internal_api.listen", string(c.InternalAPI.Listen))
|
|
checkURL(configErrs, "room_server.internal_ap.bind", string(c.InternalAPI.Connect))
|
|
checkNotEmpty(configErrs, "room_server.database.connection_string", string(c.Database.ConnectionString))
|
|
}
|