mirror of
https://github.com/1f349/dendrite.git
synced 2024-12-22 08:14:13 +00:00
Change default stats reporting endpoint (#3007)
It's the same instance we report to, only using the subdomain.
This commit is contained in:
parent
c7303cbf76
commit
689b5ee72f
@ -95,7 +95,7 @@ global:
|
||||
# We use this information to understand how Dendrite is being used in the wild.
|
||||
report_stats:
|
||||
enabled: false
|
||||
endpoint: https://matrix.org/report-usage-stats/push
|
||||
endpoint: https://panopticon.matrix.org/push
|
||||
|
||||
# Server notices allows server admins to send messages to all users on the server.
|
||||
server_notices:
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user