aboutsummaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2023-03-10 12:27:08 +0100
committerGitHub <noreply@github.com>2023-03-10 12:27:08 +0100
commit689b5ee72fe2ff6226c2afc5b209889f772f0819 (patch)
tree07bb3b56fa36651905684b36da0e61fbbad5e23f /setup
parentc7303cbf765300a8e0bdcb4a9981638c60a145d5 (diff)
Change default stats reporting endpoint (#3007)
It's the same instance we report to, only using the subdomain.
Diffstat (limited to 'setup')
-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)
}