logging.level:
  root: warn
  org.atmosphere: warn
  org.gameyfin: info
  org.flywaydb.core.internal.command: info
  org.flywaydb.core.internal.sqlscript: warn
  org.gameyfin.GameyfinApplicationKt: warn
  # Suppress false positive warnings from Spring Security 6
  org.springframework.security.config.annotation.authentication.configuration.InitializeUserDetailsBeanManagerConfigurer: error
  # Hides an error log on the first aborted download
  org.apache.catalina.core.ContainerBase: off

server:
  port: 8080
  servlet:
    session:
      tracking-modes: cookie
      timeout: 24h
  forward-headers-strategy: framework
  tomcat:
    remoteip:
      protocol-header: X-Forwarded-Proto
      remote-ip-header: X-Forwarded-For

management:
  server:
    port: 8081
  endpoints:
    web:
      exposure:
        include: restart, health, info, metrics, prometheus
  endpoint:
    pause:
      enabled: false
    restart:
      access: unrestricted

spring:
  # Workaround for https://github.com/vaadin/hilla/issues/842
  devtools.restart.additional-exclude: dev/hilla/openapi.json
  jpa:
    # defer-datasource-initialization: true
    hibernate:
      ddl-auto: validate
    open-in-view: true
  mustache:
    check-template-location: false
  sql.init.mode: always
  datasource:
    username: gfadmin
    password: gameyfin
    db-name: gameyfin_db
    url: jdbc:h2:file:./db/${spring.datasource.db-name}
    driverClassName: org.h2.Driver
  content:
    fs.filesystem-root: ./data/
  application:
    name: Gameyfin
    version: @project.version@
  threads:
    virtual.enabled: true
  mvc:
    async.request-timeout: 0
  flyway:
    baseline-on-migrate: true
    baseline-version: 2.0.0

vaadin:
  # To improve the performance during development.
  # For more information https://vaadin.com/docs/flow/spring/tutorial-spring-configuration.html#special-configuration-parameters
  allowed-packages:
    - com.vaadin
    - org.vaadin
    - dev.hilla
  pnpm:
    enable: false