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

feature request: default values for environment variables in config file #112

Closed
simonsilvalauinger opened this issue Jul 24, 2019 · 2 comments
Assignees
Milestone

Comments

@simonsilvalauinger
Copy link
Contributor

Hi,
I request a simple feature which could be useful.
At the moment it's possible to use environment variables in the config file. But if I use them, e.g. for the log level, I can not set a default value for unset environment variables. Instead I get an error message at application start that tells me that the environment variable could not be found and that the given key is not a valid value.
It would be amazing if this little feature could be added.

Thank you
Simon

@pmwmedia
Copy link
Member

Thank you for your suggestion! I like you your idea :)

I could imagine $(NAME:DEFAULT} as syntax for environment variables, and #(NAME:DEFAULT} for system properties. However, the colon and default value should be optionally.

@simonsilvalauinger Could you provide a pull request?

@github-actions
Copy link

github-actions bot commented Oct 9, 2022

This closed issue has been locked automatically. However, please feel free to file a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants