diff options
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go index f2ff788d8..40c76efe5 100644 --- a/model/config.go +++ b/model/config.go @@ -98,6 +98,11 @@ type ClusterSettings struct { InterNodeUrls []string } +type MetricsSettings struct { + Enable *bool + ListenAddress *string +} + type SSOSettings struct { Enable bool Secret string @@ -330,6 +335,7 @@ type Config struct { SamlSettings SamlSettings NativeAppSettings NativeAppSettings ClusterSettings ClusterSettings + MetricsSettings MetricsSettings WebrtcSettings WebrtcSettings } @@ -772,6 +778,16 @@ func (o *Config) SetDefaults() { o.ClusterSettings.InterNodeUrls = []string{} } + if o.MetricsSettings.ListenAddress == nil { + o.MetricsSettings.ListenAddress = new(string) + *o.MetricsSettings.ListenAddress = ":8067" + } + + if o.MetricsSettings.Enable == nil { + o.MetricsSettings.Enable = new(bool) + *o.MetricsSettings.Enable = false + } + if o.ComplianceSettings.Enable == nil { o.ComplianceSettings.Enable = new(bool) *o.ComplianceSettings.Enable = false |