aboutsummaryrefslogtreecommitdiff
path: root/cmd/generate-config
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/generate-config')
-rw-r--r--cmd/generate-config/main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/generate-config/main.go b/cmd/generate-config/main.go
index cff376d8..78ed3af6 100644
--- a/cmd/generate-config/main.go
+++ b/cmd/generate-config/main.go
@@ -1,6 +1,7 @@
package main
import (
+ "flag"
"fmt"
"github.com/matrix-org/dendrite/internal/config"
@@ -8,6 +9,9 @@ import (
)
func main() {
+ defaultsForCI := flag.Bool("ci", false, "sane defaults for CI testing")
+ flag.Parse()
+
cfg := &config.Dendrite{}
cfg.Defaults()
cfg.Global.TrustedIDServers = []string{
@@ -56,6 +60,11 @@ func main() {
},
}
+ if *defaultsForCI {
+ cfg.ClientAPI.RateLimiting.Enabled = false
+ cfg.FederationSender.DisableTLSValidation = true
+ }
+
j, err := yaml.Marshal(cfg)
if err != nil {
panic(err)