image storage added
This commit is contained in:
parent
f5ca21ca68
commit
212ce0a5c4
6 changed files with 190 additions and 65 deletions
|
|
@ -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", ""),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue