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 env variables in config.yml file #82

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

matinone
Copy link

With these changes, it would be possible to parse a YAML file with env variables with the format ${VARIABLE_NAME}, like the following one:

progress:
  type: file
meilisearch:
  api_url: ${MEILISEARCH_API_URL}
  api_key: ${MEILISEARCH_API_KEY}
source:
  type: mysql
  host: ${DB_HOST}
  port: ${DB_PORT}
  database: ${DB_DATABASE}
  user: ${DB_USER}
  password: ${DB_PASSWORD}
sync:
  - table: ${TABLE_NAME}
    index: ${INDEX_NAME}
    pk: id

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.

None yet

1 participant