Skip to content

Comments

Support env variables in config.yml file#82

Open
matinone wants to merge 1 commit intolong2ice:devfrom
matinone:feature/yaml_env_vars
Open

Support env variables in config.yml file#82
matinone wants to merge 1 commit intolong2ice:devfrom
matinone:feature/yaml_env_vars

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.

1 participant