fix(config): add SOFT_SERVE_CONFIG_LOCATION to Environ
Ayman Bagabas
created
Fixes: c354d5f21134 (feat: optionally pull config from a custom file (envvar), default to data path. (#557))
Change summary
pkg/config/config.go | 1 +
1 file changed, 1 insertion(+)
Detailed changes
@@ -174,6 +174,7 @@ func (c *Config) Environ() []string {
// TODO: do this dynamically
envs = append(envs, []string{
+ fmt.Sprintf("SOFT_SERVE_CONFIG_LOCATION=%s", c.ConfigPath()),
fmt.Sprintf("SOFT_SERVE_DATA_PATH=%s", c.DataPath),
fmt.Sprintf("SOFT_SERVE_NAME=%s", c.Name),
fmt.Sprintf("SOFT_SERVE_INITIAL_ADMIN_KEYS=%s", strings.Join(c.InitialAdminKeys, "\n")),