Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Conversation

@paulhill
Copy link

Supporting environment config
#100

simply added this config for Viper

        replacer := strings.NewReplacer(".", "_")
	viper.SetEnvKeyReplacer(replacer)
	viper.SetEnvPrefix("STELLAR")
	viper.AutomaticEnv()

and updated Viper to the v1.0.0 label

Bridge server now supports env overrides of nested config properties according to the Viper conventions.
e.g.

export STELLAR_ACCOUNTS_RECEIVING_ACCOUNT_ID=GBLZJANPTTBW3R4E2XJM5NZGRPNTH6AJSGOTWWAU7SYEC3UN7QWTP5OH

@paulhill
Copy link
Author

I'm a Go n00b so if I ballzed up the update process I might need some guidance on how to do it properly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants