endpoint env refactor
All checks were successful
/ Make image (push) Successful in 1m22s

This commit is contained in:
nquidox 2025-10-18 16:38:21 +03:00
parent f3d123ee3b
commit 947220b65c
5 changed files with 11 additions and 38 deletions

View file

@ -42,11 +42,9 @@ type GrpcConfig struct {
}
type MediaConfig struct {
Host string
Port string
Endpoint string
User string
Password string
Domain string
Secure string
}
@ -84,11 +82,9 @@ func NewConfig() *Config {
},
MediaConf: MediaConfig{
Host: getEnv("MEDIA_STORAGE_HOST", ""),
Port: getEnv("MEDIA_STORAGE_PORT", ""),
Endpoint: getEnv("MEDIA_STORAGE_ENDPOINT", ""),
User: getEnv("MEDIA_STORAGE_USER", ""),
Password: getEnv("MEDIA_STORAGE_PASSWORD", ""),
Domain: getEnv("MEDIA_STORAGE_DOMAIN", ""),
Secure: getEnv("MEDIA_STORAGE_SECURE", ""),
},
}