ms-auth/internal/lib/config.go

12 lines
301 B
Go
Raw Normal View History

2024-07-14 21:26:34 +00:00
package lib
type Config struct {
2024-08-14 10:36:43 +00:00
Env string `env:"ENV" env-default:"prod"`
Address string `env:"ADDRESS" env-default:":8090"`
2024-07-14 21:26:34 +00:00
PostgresDSN string `env:"POSTGRES_DSN" required:"true"`
RedisDSN string `env:"REDIS_DSN" required:"true"`
JWTSecret string `env:"JWT_SECRET" required:"true"`
}