#
# https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#common-application-properties
#
#server configuration
server.address=${container.hostname}
server.port=${container.port}

cxf.path=/${kie.server.context}/services/rest

#jbpm configuration
jbpm.executor.enabled=${jbpm.executor.enabled}
#jbpm.executor.retries=5
#jbpm.executor.interval=0
#jbpm.executor.threadPoolSize=1
#jbpm.executor.timeUnit=SECONDS

kieserver.location=${kie.server.base.http.url}
#kieserver.controllers=

kieserver.drools.enabled=${kieserver.drools.enabled}
kieserver.dmn.enabled=${kieserver.dmn.enabled}
kieserver.jbpm.enabled=${kieserver.jbpm.enabled}
kieserver.jbpmui.enabled=${kieserver.jbpmui.enabled}
kieserver.casemgmt.enabled=${kieserver.casemgmt.enabled}
kieserver.optaplanner.enabled=${kieserver.optaplanner.enabled}
kieserver.swagger.enabled=${kieserver.swagger.enabled}
kieserver.prometheus.enabled=${kieserver.prometheus.enabled}

# only required for jBPM
#data source configuration
spring.datasource.username=${org.kie.server.datasource.username}
spring.datasource.password=${org.kie.server.datasource.password}
spring.datasource.url=${org.kie.server.datasource.connection.url}
spring.datasource.xa.data-source-class-name=${org.kie.server.datasource.driver.class}

narayana.dbcp.enabled=true
narayana.dbcp.maxTotal=20

#hibernate configuration
spring.jpa.properties.hibernate.dialect=${org.kie.server.persistence.dialect}
spring.jpa.properties.hibernate.show_sql=false
spring.jpa.properties.hibernate.hbm2ddl.auto=create-drop
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

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