Define kafka brokers per env

This commit is contained in:
2022-02-20 23:29:21 +01:00
parent cfac9dfbd4
commit e84ebe58f1
4 changed files with 18 additions and 2 deletions

View File

@@ -48,3 +48,10 @@ config :logger, level: :info
# force_ssl: [hsts: true]
#
# 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")}
]