From c7e3385ebca7b10c030250a5304088a111928cc1 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Thu, 4 Apr 2019 08:15:27 +0200 Subject: [PATCH] add config version --- server/app/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/app/config.go b/server/app/config.go index 7693e6e..1eb788d 100644 --- a/server/app/config.go +++ b/server/app/config.go @@ -10,6 +10,7 @@ import ( ) type Config struct { + ConfigVersion int `json:"configversion"` Port int `json:"port"` EnablePrometheus bool `json:"enableprometheus"` EnableRendering bool `json:"enablerendering"` @@ -138,6 +139,7 @@ func ParseConfig(filename string) (*Config, error) { } cfg := Config{ + ConfigVersion: 1, Port: 8080, EnableRendering: true, EnablePrometheus: true,