ms-auth/config/config.go

17 lines
500 B
Go
Raw Normal View History

2024-10-09 17:07:38 +00:00
package config
2024-07-14 21:26:34 +00:00
type Config struct {
2024-12-30 15:04:26 +00:00
Env string `env:"ENV" env-default:"prod"`
Address string `env:"ADDRESS" env-default:":8090"`
ProxyAddress string `env:"PROXY_ADDRESS" env-default:":8091"`
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"`
2024-12-30 15:04:26 +00:00
AdminUsername string `env:"ADMIN_USERNAME" env-default:"admin"`
AdminPassword string `env:"ADMIN_PASSWORD" env-default:"admin"`
2024-07-14 21:26:34 +00:00
}