Get configs server external

I have an elixir / phoenix application wanted to fetch some external boot configurations.
What would be the best way to do this?

:wave:

If it’s for “production” environment and you are using distillery releases, you might want to check out config providers. Before the config provider runs, you can setup the environment with hooks.

I usually collect the info required for the app to run (like public/private ip addresses, currently active nodes, vpn setup) in a bunch of pre_start hooks, and store it into env vars, then in the release provider, the app reads values from these env vars and stores then into app’s config.

3 Likes