mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-10 08:23:11 -06:00
syncapi: Add configuration for the account database
This commit is contained in:
parent
ef7b934d51
commit
aa17cf83ac
|
|
@ -76,8 +76,7 @@ func main() {
|
||||||
log.Panicf("startup: failed to create sync server database with data source %s : %s", cfg.DataSource, err)
|
log.Panicf("startup: failed to create sync server database with data source %s : %s", cfg.DataSource, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: DO NOT USE THIS DATA SOURCE (it's the sync one, not devices!)
|
deviceDB, err := devices.NewDatabase(cfg.AccountDataSource, cfg.ServerName)
|
||||||
deviceDB, err := devices.NewDatabase(cfg.DataSource, cfg.ServerName)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panicf("startup: failed to create device database with data source %s : %s", cfg.DataSource, err)
|
log.Panicf("startup: failed to create device database with data source %s : %s", cfg.DataSource, err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ type Sync struct {
|
||||||
KafkaConsumerURIs []string `yaml:"consumer_uris"`
|
KafkaConsumerURIs []string `yaml:"consumer_uris"`
|
||||||
// The postgres connection config for connecting to the database e.g a postgres:// URI
|
// The postgres connection config for connecting to the database e.g a postgres:// URI
|
||||||
DataSource string `yaml:"database"`
|
DataSource string `yaml:"database"`
|
||||||
|
// The postgres connection config for connecting to the account database e.g a postgres:// URI
|
||||||
|
AccountDataSource string `yaml:"account_database"`
|
||||||
// The server_name of the running process e.g "localhost"
|
// The server_name of the running process e.g "localhost"
|
||||||
ServerName gomatrixserverlib.ServerName `yaml:"server_name"`
|
ServerName gomatrixserverlib.ServerName `yaml:"server_name"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue