Set Kafka envs on runtime instead of compile time

This commit is contained in:
2022-02-21 08:13:49 +01:00
parent a48a320691
commit 11140e3ecc
2 changed files with 13 additions and 21 deletions

View File

@@ -49,9 +49,3 @@ config :logger, level: :info
#
# Check `Plug.SSL` for all available options in `force_ssl`.
config :kafka_ex,
brokers: [
{System.get_env("KAFKA_BROKER_1_HOST"), System.get_env("KAFKA_BROKER_1_PORT")},
{System.get_env("KAFKA_BROKER_2_HOST"), System.get_env("KAFKA_BROKER_2_PORT")},
{System.get_env("KAFKA_BROKER_3_HOST"), System.get_env("KAFKA_BROKER_3_PORT")}
]