long2ice / meilisync

Realtime sync data from MySQL/PostgreSQL/MongoDB to Meilisearch
https://github.com/long2ice/meilisync
Apache License 2.0
250 stars 37 forks source link

Add option to set meilisearch setting from envoronment variables #3

Open sanders41 opened 1 year ago

sanders41 commented 1 year ago

Meilisearch has the option to set the api url and master key through environment variables. I have added the option for the settings here to use these same environment vairables to set the api_url and api_key. This way, especially with the api_key, it doesn't need to be stored as plain text in the config.yml or passed as plain text into the settings.