remove env-default from config

because I was already handling defaults
This commit is contained in:
Lilian Jónsdóttir 2024-01-30 10:55:15 -08:00
parent 867c21722a
commit d0be48a532

View file

@ -28,9 +28,9 @@ var defaults = &AppConfig{
// ConfigDatabase contains data to be loaded from environmental variables
type ConfigDatabase struct {
LogLevel string `env:"LOGLEVEL" env-default:"warn" env-description:"Logging level. Default: warn, Possible values: debug info warn error fatal none"`
Port uint16 `env:"PORT" env-default:"9001" env-description:"server port"`
UseCache bool `env:"CACHE" env-default:"true" env-description:"Use template cache"`
LogLevel string `env:"LOGLEVEL" env-description:"Logging level. Default: warn, Possible values: debug info warn error fatal none"`
Port uint16 `env:"PORT" env-description:"server port"`
UseCache bool `env:"CACHE" env-description:"Use template cache"`
}
// Initialises the app wide AppConfig, loads values from environment, and set up the Logger