diff --git a/config.env b/config.env index 0d78512..2c27b2d 100644 --- a/config.env +++ b/config.env @@ -1,9 +1,11 @@ #[App] APP_LOG_LVL= +APP_MODE= #[Http] HTTP_HOST= HTTP_PORT= +HTTP_PREFIX= GIN_MODE= #[gRPC] diff --git a/config/config.go b/config/config.go index 3c2b8c4..12e5fd1 100644 --- a/config/config.go +++ b/config/config.go @@ -10,11 +10,13 @@ type Config struct { type App struct { LogLvl string + Mode string } type Http struct { Host string Port string + Prefix string GinMode string } @@ -28,11 +30,13 @@ func NewConfig() Config { return Config{ App: App{ LogLvl: getEnv("APP_LOG_LVL", "debug"), + Mode: getEnv("APP_MODE", "dev"), }, Http: Http{ Host: getEnv("HTTP_HOST", "0.0.0.0"), - Port: getEnv("HTTP_PORT", "41082"), + Port: getEnv("HTTP_PORT", "41083"), + Prefix: getEnv("HTTP_PREFIX", "/api/v2"), GinMode: getEnv("GIN_MODE", "dev"), },