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

feat: configuration via environment variables #43

Merged
merged 1 commit into from
Jul 8, 2023
Merged

Conversation

kpetremann
Copy link
Owner

All settings available in the configuration file can be set as environment variables, but:

  • all variables must be prefixed by SALT_
  • uppercase only
  • - in the configuration file becomes a _
  • __ is the level separator

The precedence order is the one coming from viper:

  • flags
  • environment variables
  • configuration file

Implements: #37

All settings available in the configuration file can be set as environment variables, but:

- all variables must be prefixed by `SALT_`
- uppercase only
- `-` in the configuration file becomes a `_`
- `__` is the level separator

The precedence order is the one coming from viper:
- flags
- environment variables
- configuration file
@kpetremann kpetremann merged commit af4b8ff into main Jul 8, 2023
@kpetremann kpetremann deleted the config_via_env branch July 8, 2023 20:34
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 this pull request may close these issues.

1 participant