You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
1.9 KiB
YAML
89 lines
1.9 KiB
YAML
# Document Intelligence Platform Configuration
|
|
# Author: Martin.Schweitzer@procon.co.at and claude.ai
|
|
|
|
server:
|
|
port: 8889
|
|
servlet:
|
|
context-path: /api
|
|
|
|
spring:
|
|
profiles:
|
|
active: new
|
|
|
|
application:
|
|
name: document-intelligence-platform
|
|
|
|
datasource:
|
|
url: jdbc:postgresql://localhost:5432/RELM
|
|
username: ${DB_USERNAME:postgres}
|
|
password: ${DB_PASSWORD:P54!pcd#Wi}
|
|
driver-class-name: org.postgresql.Driver
|
|
hikari:
|
|
maximum-pool-size: 5
|
|
minimum-idle: 2
|
|
connection-timeout: 30000
|
|
idle-timeout: 300000
|
|
max-lifetime: 900000
|
|
leak-detection-threshold: 120000 # 2 minutes - increased to avoid false positives with batch processing
|
|
|
|
jpa:
|
|
hibernate:
|
|
ddl-auto: update
|
|
show-sql: false
|
|
open-in-view: false
|
|
properties:
|
|
hibernate:
|
|
dialect: org.hibernate.dialect.PostgreSQLDialect
|
|
format_sql: true
|
|
default_schema: TED
|
|
jdbc:
|
|
batch_size: 25 # Match chunk size for optimal batch processing
|
|
order_inserts: true
|
|
order_updates: true
|
|
|
|
flyway:
|
|
enabled: false
|
|
locations: classpath:db/migration
|
|
baseline-on-migrate: true
|
|
create-schemas: true
|
|
schemas:
|
|
- TED
|
|
- DOC
|
|
default-schema: TED
|
|
|
|
# Apache Camel Configuration
|
|
camel:
|
|
springboot:
|
|
main-run-controller: true
|
|
health:
|
|
enabled: true
|
|
# Weniger strenge Health-Checks für File-Consumer
|
|
consumers-enabled: false
|
|
|
|
# Actuator endpoints
|
|
management:
|
|
endpoints:
|
|
web:
|
|
exposure:
|
|
include: health,info,metrics,camel
|
|
endpoint:
|
|
health:
|
|
show-details: when-authorized
|
|
|
|
# OpenAPI documentation
|
|
springdoc:
|
|
api-docs:
|
|
path: /v3/api-docs
|
|
swagger-ui:
|
|
path: /swagger-ui.html
|
|
operations-sorter: method
|
|
|
|
# Logging configuration
|
|
logging:
|
|
level:
|
|
at.procon.ted: INFO
|
|
at.procon.ted.camel.SolutionBriefRoute: INFO
|
|
org.apache.camel: INFO
|
|
org.hibernate.SQL: WARN
|
|
org.hibernate.type.descriptor.sql: WARN
|