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

Optional array override #637

Open
gfl-chris opened this issue May 29, 2019 · 2 comments
Open

Optional array override #637

gfl-chris opened this issue May 29, 2019 · 2 comments

Comments

@gfl-chris
Copy link

gfl-chris commented May 29, 2019

If I have a configuration

addrs_of_service = ["addr_of_service"]

is it possible to replace the contents of the addrs_of_service array with an optional environment variable?

(If and only if ${?ADDR_OF_SERVICE} was defined and had the value "addr2_of_service", then addrs_of_service would become ["addr2_of_service"].)

@2m
Copy link
Contributor

2m commented May 30, 2019

Unfortunately arbitrary config overrides when using -Dconfig.override_with_env_vars=true do not currently work for arrays. However there are discussions going on about how to encode arrays in environment variables and make this work: https://gitter.im/lightbend/config?at=5ce2dfa20ec37966a1a2051f

@mkobit
Copy link

mkobit commented Jun 14, 2019

Seems related to #369 as well

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

No branches or pull requests

3 participants