diff --git a/dendrite-config.yaml b/dendrite-config.yaml index 533b5c952..e799a1696 100644 --- a/dendrite-config.yaml +++ b/dendrite-config.yaml @@ -68,6 +68,9 @@ global: # to other servers and the federation API will not be exposed. disable_federation: false + # Whether this instance sends anonymous usage stats + report_stats: false + # Server notices allows server admins to send messages to all users. server_notices: enabled: false diff --git a/setup/config/config_global.go b/setup/config/config_global.go index b947f2076..4cde29312 100644 --- a/setup/config/config_global.go +++ b/setup/config/config_global.go @@ -60,6 +60,9 @@ type Global struct { // ServerNotices configuration used for sending server notices ServerNotices ServerNotices `yaml:"server_notices"` + + // ReportStats configures anonymous usage stats of the server + ReportStats bool `yaml:"report_stats"` } func (c *Global) Defaults(generate bool) { @@ -70,6 +73,7 @@ func (c *Global) Defaults(generate bool) { c.KeyID = "ed25519:auto" } c.KeyValidityPeriod = time.Hour * 24 * 7 + c.ReportStats = false c.JetStream.Defaults(generate) c.Metrics.Defaults(generate)