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

Allow config key override through env var #332

Merged
merged 1 commit into from
Jun 7, 2019

Conversation

pacien
Copy link
Contributor

@pacien pacien commented Jun 6, 2019

This PR adds the possibility for the user to override configuration keys through the use of environment variables.

For instance, one could set a value for telegram.bot_token by defining the MAUTRIX_TELEGRAM_TELEGRAM_BOT_TOKEN environment variable.

This is handy for some environment such as managed Docker containers or NixOS modules, as well as for quick testing.

The proposed changed haven't been tested.

Signed-off-by: pacien [email protected]

@tulir tulir merged commit a593f71 into mautrix:master Jun 7, 2019
CRTified added a commit to CRTified/nixpkgs that referenced this pull request Nov 10, 2020
The change that allows setting the secrets by an environment file had
the undocumented side effect of allowing to set any key by the environment
file (Related PR: mautrix/telegram#332).

This is required to e.g. set `bridge.login_shared_secret`, which was not
documented before.
pacien pushed a commit to pacien/nixpkgs that referenced this pull request Nov 16, 2022
The change that allows setting the secrets by an environment file had
the undocumented side effect of allowing to set any key by the environment
file (Related PR: mautrix/telegram#332).

This is required to e.g. set `bridge.login_shared_secret`, which was not
documented before.

GitHub: closes NixOS#103347
winterqt pushed a commit to NixOS/nixpkgs that referenced this pull request Nov 21, 2022
The change that allows setting the secrets by an environment file had
the undocumented side effect of allowing to set any key by the environment
file (Related PR: mautrix/telegram#332).

This is required to e.g. set `bridge.login_shared_secret`, which was not
documented before.

GitHub: closes #103347
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants