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

Is the "Optional system or env variable overrides" supported here? #301

Closed
jonathan-dev opened this issue Dec 11, 2024 · 6 comments
Closed

Comments

@jonathan-dev
Copy link

Is the "Optional system or env variable overrides" from the hocon spec supported here?
https://github.com/lightbend/config?tab=readme-ov-file#optional-system-or-env-variable-overrides
I can't get it to work when configuring emqx which should be using this lib right?

I am using the v5.8.3 docker image

@id
Copy link

id commented Dec 11, 2024

Yes. Please refer to the official documentation https://docs.emqx.com/en/emqx/latest/configuration/configuration.html#environment-variables

@jonathan-dev
Copy link
Author

I was wondering about the hocon syntax: ${?FORCED_BASEDIR} refering to the environment variable FORCED_BASEDIR that ist discussed in the docs you linked to or is it? There it is just talking about that I can set certain variables that will set certain settings...

@id
Copy link

id commented Dec 11, 2024

ping @zmstone

@zmstone
Copy link
Member

zmstone commented Dec 12, 2024

We have no plan to implement environment variable value interpolation in this lib.

@jonathan-dev
Copy link
Author

We have no plan to implement environment variable value interpolation in this lib.

could you list this under Divergence from Spec and Caveats in the readme.md would have been helpful for me

Thanks

@zmstone
Copy link
Member

zmstone commented Dec 12, 2024

#302

@zmstone zmstone closed this as completed Dec 12, 2024
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