#
# https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#common-application-properties
#
#server configuration
server.address=0.0.0.0
server.port=8090

cxf.path=/rest

#kie server config
kieserver.serverId=business-application-service
kieserver.serverName=business-application-service
kieserver.location=http://localhost:8090/rest/server
#kieserver.controllers=


#kie server capabilities
kieserver.drools.enabled=true
kieserver.dmn.enabled=true
kieserver.jbpm.enabled=true
kieserver.jbpmui.enabled=true
kieserver.casemgmt.enabled=true


#audit replication configuration
kieserver.audit-replication.producer=true
kieserver.audit-replication.consumer=true
kieserver.audit-replication.queue=audit-queue
#kieserver.prometheus.enabled=true

spring.artemis.mode=embedded
spring.artemis.embedded.enabled=true
spring.artemis.embedded.queues=audit-queue

logging.level.root=INFO
logging.level.org.apache.activemq=WARN

#jbpm configuration
jbpm.executor.enabled=false

#data source configuration
spring.datasource.username=sa
spring.datasource.password=sa
spring.datasource.url=jdbc:h2:mem:kieserver
spring.datasource.driver-class-name=org.h2.Driver
spring.h2.console.enabled=true

spring.datasource.second.url=jdbc:h2:mem:kieserver-replica
spring.datasource.second.username=sa
spring.datasource.second.password=sa
spring.datasource.second.driverClassName=org.h2.Driver

#hibernate configuration
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
spring.jpa.properties.hibernate.show_sql=false
spring.jpa.properties.hibernate.hbm2ddl.auto=update
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

#transaction manager configuration
spring.jta.narayana.transaction-manager-id=1

#banner
spring.banner.location=classpath:banner.txt