# Server configuration
server.port=8080

# Logging configuration

logging.level.root = INFO
logging.level.org.hibernate.engine.jdbc.spi.SqlExceptionHelper = FATAL

# Internationalization
spring.messages.basename=messages
spring.messages.encoding=UTF-8
spring.messages.cache-duration=3600

# PostgreSQL configuration (commented out for now, uncomment for production)
spring.datasource.url=jdbc:postgresql://localhost:5432/reittidb
spring.datasource.username=reitti
spring.datasource.password=reitti

#Redis configuration
spring.data.redis.host=localhost
spring.data.redis.port=6379
spring.data.redis.username=
spring.data.redis.password=

spring.thymeleaf.cache=false


# RabbitMQ Configuration
spring.rabbitmq.host=localhost
spring.rabbitmq.port=5672
spring.rabbitmq.username=reitti
spring.rabbitmq.password=reitti
spring.rabbitmq.listener.simple.retry.enabled=true
spring.rabbitmq.listener.simple.retry.initial-interval=1000ms
spring.rabbitmq.listener.simple.retry.max-attempts=3
spring.rabbitmq.listener.simple.retry.multiplier=1.5
spring.rabbitmq.listener.simple.prefetch=10


spring.cache.cache-names=processed-visits,significant-places
spring.cache.redis.time-to-live=1d

# Application specific settings
reitti.events.concurrency=4-16

reitti.visit.merge-threshold-meters=${reitti.staypoint.distance-threshold-meters}
reitti.visit.merge-threshold-seconds=300
reitti.visit.merge-max-stay-search-extension-days=2

# Stay point detection settings
reitti.staypoint.distance-threshold-meters=100
reitti.staypoint.min-points=5

reitti.process-data.schedule=0 */10 * * * *

# Geocoding service configuration
reitti.geocoding.max-errors=10

# Geocoding fixed service configuration
reitti.geocoding.photon.base-url=

# Data management configuration
reitti.data-management.enabled=false

spring.servlet.multipart.max-file-size=5GB
spring.servlet.multipart.max-request-size=5GB
