Compare commits

...
3 Commits
Author SHA1 Message Date
2martens f06abd2838 Add application name
continuous-integration/drone/push Build is failing
2023-08-17 01:12:38 +02:00
2martens f0297f2d2c Changed prod message [CI SKIP] 2023-08-17 01:10:11 +02:00
2martens ec23bd4d32 Connect with kafka using bootstrap servers
continuous-integration/drone/push Build is failing
2023-08-17 00:53:05 +02:00
3 changed files with 7 additions and 19 deletions
@@ -1,18 +0,0 @@
package de.twomartens.wahlrecht.configuration
import org.apache.kafka.clients.admin.AdminClientConfig
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Profile
import org.springframework.kafka.core.KafkaAdmin
@Configuration
open class KafkaConfiguration {
@Bean
@Profile("prod")
open fun kafkaProd() = KafkaAdmin(mapOf(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG to "kafka:9092"))
@Bean
@Profile("dev")
open fun kafkaDev() = KafkaAdmin(mapOf(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG to "localhost:9092"))
}
@@ -28,6 +28,10 @@ spring:
name: wahlrecht name: wahlrecht
main: main:
banner-mode: off banner-mode: off
kafka:
bootstrap-servers:
- localhost:9092
- kafka:9092
profiles: profiles:
default: dev default: dev
data.mongodb: data.mongodb:
@@ -38,6 +42,8 @@ spring:
resourceserver: resourceserver:
jwt: jwt:
jwk-set-uri: https://id.2martens.de/realms/2martens/protocol/openid-connect/certs jwk-set-uri: https://id.2martens.de/realms/2martens/protocol/openid-connect/certs
application:
name: wahlrecht
springdoc: springdoc:
swagger-ui: swagger-ui:
@@ -1,2 +1,2 @@
de.twomartens.wahlrecht: de.twomartens.wahlrecht:
greeting: "Moin %s, you are great" greeting: "Moin %s, you are prod"