refactor: update storage configuration to use environment variables
This commit is contained in:
parent
7630e4273b
commit
a7e9f1d8ff
1 changed files with 2 additions and 2 deletions
|
|
@ -68,8 +68,8 @@ func Load() *Config {
|
||||||
Cfg.Images.Path = filepath.Join(pwd, "images")
|
Cfg.Images.Path = filepath.Join(pwd, "images")
|
||||||
|
|
||||||
// Storage config
|
// Storage config
|
||||||
Cfg.Storage.Endpoint = filepath.Join(pwd, "STORAGE_URL")
|
Cfg.Storage.Endpoint = getEnv("STORAGE_URL", "")
|
||||||
Cfg.Storage.Token = filepath.Join(pwd, "STORAGE_TOKEN")
|
Cfg.Storage.Token = getEnv("STORAGE_TOKEN", "")
|
||||||
|
|
||||||
// Server config
|
// Server config
|
||||||
Cfg.Server.Port = getEnvAsInt("PORT", 1323)
|
Cfg.Server.Port = getEnvAsInt("PORT", 1323)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue