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

Supporting environment config #101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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