Skip to content

Commit

Permalink
Environment test
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusev committed Jun 1, 2021
1 parent c5d19ad commit 962c62d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/fo/veilarbvarsel/config/Environment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data class Environment(
data class KafkaEnvironment(
val host: String = getEnvVar("KAFKA_HOST", "localhost"),
val port: Int = getEnvVar("KAFKA_PORT", "29092").toInt(),
val bootstrapServers: String = getEnvVar("KAFKA_BOOTSTRAP_SERVERS", "$host:$port"),
val bootstrapServers: String = getEnvVar("KAFKA_BROKERS_URL", "$host:$port"),
val schemaRegistryUrl: String = getEnvVar("KAFKA_SCHEMAREGISTRY_SERVERS", "http://localhost:8081"),
)

Expand Down Expand Up @@ -38,4 +38,4 @@ fun getEnvVar(varName: String, default: String?): String {
?: throw IllegalArgumentException("Appen kan ikke starte uten av miljøvariabelen $varName er satt.")


}
}

0 comments on commit 962c62d

Please sign in to comment.