spring:
  application:
    name: ${APP_NAME:base-admin-web}
  profiles:
    active: ${SPRING_PROFILES_ACTIVE:dev}
  thymeleaf:
    cache: ${SPRING_THYMELEAF_CACHE:false}
  datasource:
    url: ${SPRING_DATASOURCE_URL:jdbc:h2:file:./data/h2/baseadminweb;MODE=PostgreSQL;AUTO_SERVER=TRUE}
    username: ${SPRING_DATASOURCE_USERNAME:sa}
    password: ${SPRING_DATASOURCE_PASSWORD:}
    driver-class-name: ${SPRING_DATASOURCE_DRIVER_CLASS_NAME:org.h2.Driver}
  jpa:
    hibernate:
      ddl-auto: ${SPRING_JPA_HIBERNATE_DDL_AUTO:update}
    open-in-view: false
    show-sql: ${SPRING_JPA_SHOW_SQL:false}
    properties:
      hibernate:
        format_sql: true
  h2:
    console:
      enabled: ${SPRING_H2_CONSOLE_ENABLED:true}
      path: /h2-console

server:
  port: ${SERVER_PORT:8080}
  servlet:
    session:
      timeout: 30m

logging:
  level:
    org.springframework.security: INFO

app:
  title: ${APP_TITLE:Base Admin Web}
  jwt:
    secret: ${APP_JWT_SECRET:base-admin-web-dev-secret-change-me-32chars!!}
    expiration-hours: ${APP_JWT_EXPIRATION_HOURS:8}
  admin:
    username: ${APP_ADMIN_USERNAME:admin}
    password: ${APP_ADMIN_PASSWORD:Admin123*}
    display-name: ${APP_ADMIN_DISPLAY_NAME:Administrador Base}
  scanner:
    username: ${APP_SCANNER_USERNAME:scanner}
    password: ${APP_SCANNER_PASSWORD:Scanner123*}
    display-name: ${APP_SCANNER_DISPLAY_NAME:Escaneador}
