mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Merge latest updates to Dendrite Of note, this no longer builds the Dendrite polylith server, which we never planned to use anyway I want to make sure I didn't break the clientapi/routing/routing.go redaction events, our code differs from Dendrite in that call path. --------- Signed-off-by: Brian Meek <brian@hntlabs.com> Co-authored-by: Tak Wai Wong <64229756+tak-hntlabs@users.noreply.github.com>
22 lines
505 B
Go
22 lines
505 B
Go
package config
|
|
|
|
type KeyServer struct {
|
|
Matrix *Global `yaml:"-"`
|
|
|
|
Database DatabaseOptions `yaml:"database,omitempty"`
|
|
}
|
|
|
|
func (c *KeyServer) Defaults(opts DefaultOpts) {
|
|
if opts.Generate {
|
|
if !opts.SingleDatabase {
|
|
c.Database.ConnectionString = "file:keyserver.db"
|
|
}
|
|
}
|
|
}
|
|
|
|
func (c *KeyServer) Verify(configErrs *ConfigErrors) {
|
|
if c.Matrix.DatabaseOptions.ConnectionString == "" {
|
|
checkNotEmpty(configErrs, "key_server.database.connection_string", string(c.Database.ConnectionString))
|
|
}
|
|
}
|