Hi, I have an umbrella project which has many configs, hence I want to bind some of them with user help.
I created a setting database in my project and user can change some of them like: google reCAPTCHA
client ID or change twitter auth secret code.
I need to change my app’s config when application is running without restarting project and this should be revalued by the user and the database.
For now, I have config like this:
config :ueberauth, Ueberauth.Strategy.Github.OAuth,
client_id: System.get_env("GITHUB_CLIENT_ID"),
client_secret: System.get_env("GITHUB_CLIENT_SECRET")
config :ueberauth, Ueberauth.Strategy.Google.OAuth,
client_id: System.get_env("GOOGLE_CLIENT_ID"),
client_secret: System.get_env("GOOGLE_CLIENT_SECRET"),
redirect_uri: System.get_env("GOOGLE_REDIRECT_URI")
Thank you