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

Support using environment variables in configuration files #36

Closed
forman opened this issue Jan 24, 2024 · 0 comments · Fixed by #51
Closed

Support using environment variables in configuration files #36

forman opened this issue Jan 24, 2024 · 0 comments · Fixed by #51
Labels
enhancement New feature or request

Comments

@forman
Copy link
Member

forman commented Jan 24, 2024

When loading configurations from JSON or YAML files, it should be possible to reference environment variables and insert their current values, for example

{
  "slice_storage_options": {
    "key": "${CREODIAS_S3_KEY}",
    "secret": "${CREODIAS_S3_SECRET}"
   }
}

Or using YAML

slice_storage_options:
  key: ${CREODIAS_S3_KEY}
  secret: ${CREODIAS_S3_SECRET}
@forman forman added the enhancement New feature or request label Jan 24, 2024
forman added a commit that referenced this issue Feb 2, 2024
@forman forman closed this as completed in #51 Feb 2, 2024
forman added a commit that referenced this issue Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant