server:
  port: 8098

spring:
  application:
    name: audit-log-service

  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://${DB_HOST:mysql-prod}:3306/${DB_NAME:erp_audit}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=true
    username: ${DB_USER:erp_user}
    password: ${DB_PASS}
    type: com.alibaba.druid.pool.DruidDataSource
    initial-size: 10
    min-idle: 10
    max-active: 50
    max-wait: 60000

  redis:
    host: ${REDIS_HOST:redis-prod}
    port: ${REDIS_PORT:6379}
    password: ${REDIS_PASS}
    database: 1
    timeout: 5000
    lettuce:
      pool:
        max-active: 20
        max-wait: -1
        max-idle: 10
        min-idle: 5

logging:
  level:
    com.erp.audit: INFO
    com.erp.common: WARN
  file:
    name: /var/log/erp/audit-log-service.log
    max-size: 100MB
    max-history: 30

mybatis-plus:
  configuration:
    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl

audit:
  log:
    retention-days: 180
    async-queue-size: 5000
  sensitive:
    alert-enabled: true
  export:
    max-export-rows: 500000
    export-timeout: 600
