env added

This commit is contained in:
nquidox 2026-02-28 23:32:47 +03:00
parent 13ebb27335
commit 56309cafb9
2 changed files with 3 additions and 0 deletions

View file

@ -29,6 +29,7 @@ type GrpcConfig struct {
type TasksConfig struct {
RetryCount int
RetryMinutes int
TaskTimeout int
}
type OriginEnabled struct {
@ -62,6 +63,7 @@ func NewConfig() *Config {
TasksCfg: TasksConfig{
RetryCount: getEnvInt("TASK_RETRY_COUNT", 3),
RetryMinutes: getEnvInt("TASK_RETRY_MINUTES", 5),
TaskTimeout: getEnvInt("TASK_TIMEOUT_MINUTES", 5),
},
OriginEnabled: OriginEnabled{