adding apiurl to env so we can define the issuer
This commit is contained in:
parent
4be8726efb
commit
8e5867c46d
@ -16,7 +16,7 @@ func NewEnvConfig() domain.EnvConfig {
|
|||||||
log.Println(err)
|
log.Println(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
disableMigrations, err := strconv.ParseBool(os.Getenv("DisableMigrationsOnStartup"))
|
disableMigrations, err := strconv.ParseBool(os.Getenv("DisableMigrationsOnStartup"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
disableMigrations = false
|
disableMigrations = false
|
||||||
}
|
}
|
||||||
@ -24,6 +24,7 @@ func NewEnvConfig() domain.EnvConfig {
|
|||||||
return domain.EnvConfig{
|
return domain.EnvConfig{
|
||||||
AdminToken: os.Getenv("AdminToken"),
|
AdminToken: os.Getenv("AdminToken"),
|
||||||
JwtSecret: os.Getenv("JwtSecret"),
|
JwtSecret: os.Getenv("JwtSecret"),
|
||||||
|
ApiUri: os.Getenv("ApiUri"),
|
||||||
DisableMigrationsOnStartUp: disableMigrations,
|
DisableMigrationsOnStartUp: disableMigrations,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user