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

configuration: support default values with ${ENV_VAR:default_value} syntax #3578

Closed
muxator opened this issue Mar 21, 2019 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@muxator
Copy link
Contributor

muxator commented Mar 21, 2019

#3543 introduced suport for configuring via environment variables in settings.json.
The syntax was inspired to Elastic Serach's one.

It may be useful to extend this syntax, also supporting a default value in the configuration, so that if no environment variable is given, the default is used. For this, the model can be the following syntax:

To specify a default value, use:

${VAR:default_value}

Where default_value is the value to use if the environment variable is undefined.

@muxator muxator added the docker label Mar 21, 2019
@muxator muxator added this to the 1.8 milestone Mar 21, 2019
@muxator muxator self-assigned this Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant