add config version

This commit is contained in:
NatureFreshMilk 2019-04-04 08:15:27 +02:00
parent c2d3f35962
commit c7e3385ebc

View File

@ -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,