diff --git a/configuration/config.go b/configuration/config.go index 4943459deb412304670a8293e3ec4cfa0e1671a4..2f2832054bf128d0c37086b7b96ed7c754f942b1 100644 --- a/configuration/config.go +++ b/configuration/config.go @@ -12,6 +12,8 @@ const BODY_SIZE_LIMIT = 32 * 1024 * 1024 // 32 MB, in bytes type Config struct { + Version string `env:"VERSION" envDefault:"N/A"` + Environment string `env:"ENV_NAME" envDefault:"development"` Host string `env:"HOST" envDefault:"127.0.0.1"` Port int16 `env:"PORT" envDefault:"3000"` diff --git a/routing/routes.go b/routing/routes.go index 048249a24e88c004098deef41d02695836f7c52d..30b607f32a2700d087b06747f5d0e8a56c8fe462 100644 --- a/routing/routes.go +++ b/routing/routes.go @@ -34,7 +34,7 @@ func SetRoutes( router *f.App, config *configuration.Config, store state.Store, } data := indexHtmlData{ - Version: "", + Version: config.Version, Color: "", }