aboutsummaryrefslogtreecommitdiff
path: root/setup/config/config_global.go
diff options
context:
space:
mode:
Diffstat (limited to 'setup/config/config_global.go')
-rw-r--r--setup/config/config_global.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/setup/config/config_global.go b/setup/config/config_global.go
index ed980afa..7d3ab6a4 100644
--- a/setup/config/config_global.go
+++ b/setup/config/config_global.go
@@ -319,10 +319,15 @@ type ReportStats struct {
func (c *ReportStats) Defaults() {
c.Enabled = false
- c.Endpoint = "https://matrix.org/report-usage-stats/push"
+ c.Endpoint = "https://panopticon.matrix.org/push"
}
func (c *ReportStats) Verify(configErrs *ConfigErrors) {
+ // We prefer to hit panopticon (https://github.com/matrix-org/panopticon) directly over
+ // the "old" matrix.org endpoint.
+ if c.Endpoint == "https://matrix.org/report-usage-stats/push" {
+ c.Endpoint = "https://panopticon.matrix.org/push"
+ }
if c.Enabled {
checkNotEmpty(configErrs, "global.report_stats.endpoint", c.Endpoint)
}