diff options
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index a15dc116af..42ee102e0d 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -561,6 +561,15 @@ var ( TrustedFacets []string }{} + // Metrics settings + Metrics = struct { + Enabled bool + Token string + }{ + Enabled: false, + Token: "", + } + // I18n settings Langs []string Names []string @@ -1125,6 +1134,8 @@ func NewContext() { log.Fatal(4, "Failed to map Git settings: %v", err) } else if err = Cfg.Section("api").MapTo(&API); err != nil { log.Fatal(4, "Failed to map API settings: %v", err) + } else if err = Cfg.Section("metrics").MapTo(&Metrics); err != nil { + log.Fatal(4, "Failed to map Metrics settings: %v", err) } sec = Cfg.Section("mirror") |