Skip to content

Add environment variable overrides for file loaded properties#30

Open
svdberg wants to merge 2 commits into
magiconair:mainfrom
svdberg:master
Open

Add environment variable overrides for file loaded properties#30
svdberg wants to merge 2 commits into
magiconair:mainfrom
svdberg:master

Conversation

@svdberg

@svdberg svdberg commented Mar 16, 2018

Copy link
Copy Markdown

We internally use the functionality of overriding loaded properties with prefixed environment variables.
We convert the names of these env variables to property keys with a simple replacement scheme. This PR implements this logic. Feel free to do anything with it you like, just sharing in case there is any interest in this approach.

Example:
thrift.client=proxy
can be overridden with the
PREFIX_THRIFT_CLIENT environment variable, where PREFIX is configurable.

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.

1 participant