image storage added

This commit is contained in:
nquidox 2025-10-26 19:54:34 +03:00
parent f5ca21ca68
commit 212ce0a5c4
6 changed files with 190 additions and 65 deletions

View file

@ -8,6 +8,7 @@ type Config struct {
JWTConf JWTConfig
GrpcConf GrpcConfig
MediaConf MediaConfig
ImageConf ImageStorageConfig
}
type AppConfig struct {
@ -48,6 +49,11 @@ type MediaConfig struct {
Secure string
}
type ImageStorageConfig struct {
Host string
Port string
}
func NewConfig() *Config {
return &Config{
AppConf: AppConfig{
@ -87,5 +93,10 @@ func NewConfig() *Config {
Password: getEnv("MEDIA_STORAGE_PASSWORD", ""),
Secure: getEnv("MEDIA_STORAGE_SECURE", ""),
},
ImageConf: ImageStorageConfig{
Host: getEnv("IMAGE_STORAGE_HOST", ""),
Port: getEnv("IMAGE_STORAGE_PORT", ""),
},
}
}