Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: enable loading config from env variables #68

Merged
merged 1 commit into from Nov 15, 2021

Conversation

ptrus
Copy link
Member

@ptrus ptrus commented Nov 15, 2021

Fixes: https://github.com/starfishlabs/oasis-evm-web3-gateway/issues/1

Configuration management switched from viper to koanf, due to some sad viper bugs:

All config variables can now be overriden via env flags. Note: env hierarchy delimiter used is __, example, to set databse.host: use the DATABASE__HOST env variable.

@ptrus ptrus merged commit d120580 into main Nov 15, 2021
@ptrus ptrus deleted the ptrus/feature/config-env branch November 15, 2021 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Postgresql password should be moved into an environment variable
2 participants