summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index c28e02e18..1ac44c579 100644
--- a/model/config.go
+++ b/model/config.go
@@ -105,6 +105,10 @@ type MetricsSettings struct {
ListenAddress *string
}
+type AnalyticsSettings struct {
+ MaxUsersForStatistics *int
+}
+
type SSOSettings struct {
Enable bool
Secret string
@@ -345,6 +349,7 @@ type Config struct {
NativeAppSettings NativeAppSettings
ClusterSettings ClusterSettings
MetricsSettings MetricsSettings
+ AnalyticsSettings AnalyticsSettings
WebrtcSettings WebrtcSettings
}
@@ -845,6 +850,11 @@ func (o *Config) SetDefaults() {
*o.MetricsSettings.Enable = false
}
+ if o.AnalyticsSettings.MaxUsersForStatistics == nil {
+ o.AnalyticsSettings.MaxUsersForStatistics = new(int)
+ *o.AnalyticsSettings.MaxUsersForStatistics = 2500
+ }
+
if o.ComplianceSettings.Enable == nil {
o.ComplianceSettings.Enable = new(bool)
*o.ComplianceSettings.Enable = false