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

Some settings cannot be set via environment #105

Closed
mightyiam opened this issue Sep 14, 2023 · 1 comment · Fixed by #109
Closed

Some settings cannot be set via environment #105

mightyiam opened this issue Sep 14, 2023 · 1 comment · Fixed by #109

Comments

@mightyiam
Copy link

It seems that some settings cannot be set via environment. Because:

They have underscores in their names.
And the separator (as in config::Environment::separator) is an underscore.

For example, one might try to set database.database_type via MCAPTCHA_DATABASE_DATABASE_TYPE.
But that doesn't work. Because it will be resolved to database.database.type 😟 😢 .

Some users of the config crate are confused about this, but here's the gist of it, as far as I understand: you can't use the separator in a name.

@mightyiam
Copy link
Author

Thank you!

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 a pull request may close this issue.

1 participant