aboutsummaryrefslogtreecommitdiff
path: root/cmd/generate-config/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/generate-config/main.go')
-rw-r--r--cmd/generate-config/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/generate-config/main.go b/cmd/generate-config/main.go
index ff91e753..2ea12e34 100644
--- a/cmd/generate-config/main.go
+++ b/cmd/generate-config/main.go
@@ -16,13 +16,14 @@ func main() {
dbURI := flag.String("db", "", "The DB URI to use for all components if not SQLite files")
flag.Parse()
- cfg := &config.Dendrite{}
+ cfg := &config.Dendrite{
+ Version: config.Version,
+ }
cfg.Defaults(true)
if *serverName != "" {
cfg.Global.ServerName = gomatrixserverlib.ServerName(*serverName)
}
if *dbURI != "" {
- cfg.Global.Kafka.Database.ConnectionString = config.DataSource(*dbURI)
cfg.AppServiceAPI.Database.ConnectionString = config.DataSource(*dbURI)
cfg.FederationAPI.Database.ConnectionString = config.DataSource(*dbURI)
cfg.KeyServer.Database.ConnectionString = config.DataSource(*dbURI)
@@ -88,6 +89,7 @@ func main() {
cfg.MSCs.MSCs = []string{"msc2836", "msc2946", "msc2444", "msc2753"}
cfg.Logging[0].Level = "trace"
cfg.UserAPI.BCryptCost = bcrypt.MinCost
+ cfg.Global.JetStream.InMemory = true
}
j, err := yaml.Marshal(cfg)