Snapshot: Fix http api (#18830)

(cherry picked from commit be2e2330f5)
This commit is contained in:
Marcus Efraimsson
2019-09-02 15:15:46 +02:00
committed by GitHub
parent 2672b92206
commit 964c2e722f
6 changed files with 47 additions and 7 deletions
+2
View File
@@ -108,6 +108,7 @@ var (
ExternalSnapshotName string
ExternalEnabled bool
SnapShotRemoveExpired bool
SnapshotPublicMode bool
// Dashboard history
DashboardVersionsToKeep int
@@ -734,6 +735,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
}
ExternalEnabled = snapshots.Key("external_enabled").MustBool(true)
SnapShotRemoveExpired = snapshots.Key("snapshot_remove_expired").MustBool(true)
SnapshotPublicMode = snapshots.Key("public_mode").MustBool(false)
// read dashboard settings
dashboards := iniFile.Section("dashboards")