Also return google bucket url in response

This commit is contained in:
2022-12-17 14:23:47 +01:00
parent 576a4e1579
commit 79d7c4068b
5 changed files with 25 additions and 21 deletions

View File

@@ -9,9 +9,9 @@ import (
// Config contains environment variables.
type Config struct {
Hostname string `envconfig:"HOSTNAME"`
GCSBucket string `envconfig:"GCS_BUCKET" default:"p"`
Port string `envconfig:"PORT" default:"8000"`
Hostname string `envconfig:"HOSTNAME"`
GCSBucket string `envconfig:"GCS_BUCKET" default:"p"`
Port string `envconfig:"PORT" default:"8000"`
}
// LoadConfig reads environment variables, populates and returns Config.
@@ -25,4 +25,4 @@ func LoadConfig() (*Config, error) {
err := envconfig.Process("", &c)
return &c, err
}
}