# Votian REST Services - Application Configuration
server.port=8081

# MariaDB DataSource
spring.datasource.url=jdbc:mariadb://${VOTIAN_DB_HOST:192.168.180.24}:${VOTIAN_DB_PORT:3306}/${VOTIAN_DB_NAME:phoenix}
spring.datasource.username=${VOTIAN_DB_USERNAME:votian}
spring.datasource.password=${VOTIAN_DB_PASSWORD:votian}
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver

# JPA / Hibernate
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.show-sql=false
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.default_schema=phoenix

# Connection Pool
spring.datasource.hikari.maximum-pool-size=20
spring.datasource.hikari.minimum-idle=5

# Uploads
spring.servlet.multipart.max-file-size=25MB
spring.servlet.multipart.max-request-size=30MB
votian.storage.job-documents-dir=../html/import/upload/a547bc4b2a91355a3aba3ed0827cf6f2
votian.storage.job-mobile-photos-dir=../html/documents/photos
votian.storage.job-station-photos-dir=../html/temp/photos

# Logging
logging.level.de.votian=INFO
logging.level.org.hibernate.SQL=WARN

# Legacy scheduler bridge
votian.scheduling.enabled=true
votian.scheduling.zone=Europe/Berlin
votian.scheduling.auth-session-cleanup-cron=0 */5 * * * *
votian.scheduling.courier-auto-logout-cron=0 */30 * * * *
votian.scheduling.courier-auto-logout-headquarters-id=3
votian.scheduling.acceptance-protocol-mail-cron=0 */5 * * * *
votian.scheduling.acceptance-protocol-letter-cron=30 */5 * * * *
votian.scheduling.acceptance-protocol-mail-lookback-days=1
votian.scheduling.acceptance-protocol-letter-lookback-days=3
votian.scheduling.acceptance-protocol-letter-ftp-profile=MPS1
