server:
  port: 9095
  servlet:
    encoding:
      charset: UTF-8
      force: true
      enabled: true
#  servlet:
#    context-path: /business
spring:
  application:
    name: aj-report
  #  cloud:
#    nacos:
#      server-addr: 10.108.26.121:8848,10.108.26.145:8848
#      username: gaea
#      password: p@ss1234
#      config:
#        namespace: 5c6b6687-ad43-450f-88b6-e704ff78d83f
#        file-extension: yaml
#      discovery:
#        namespace: 5c6b6687-ad43-450f-88b6-e704ff78d83f
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
  messages:
    basename: i18n/messages
  datasource:
    url: jdbc:mysql://10.108.26.197:3306/aj_report?characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
    username: root
    password: appuser@anji
# 禁用redis，使用ehcache
#  redis:
#    host: 10.108.26.197
#    port: 6379
#    password: appuser@anji
#    database: 1

  flyway:
    baseline-on-migrate: true
    #数据库连接配置
    url: ${spring.datasource.url}
    user: ${spring.datasource.username}
    password: ${spring.datasource.password}
    placeholder-replacement: false
generator:
  enabled: true
  workspace: /workspace/gaea
  templatePath: template
mybatis-plus:
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    call-setters-on-nulls: true
  mapperLocations:
    - classpath*:/mapper/**/*.xml
    - classpath*:/modeler-mybatis-mappings/**/*.xml

  gaea:
    subscribes:
      security:
        enabled: true
      push:
        enabled: true
        sms:
          aliyun:
            access-key-id:
            secret:
      audit-log:
        enabled: true
        callback-url: http://127.0.0.1:9091/log/callback
      export:
        enabled: true

  #  邮箱发送配置
  mail:
    #    host不配置会注入失败
    host: smtp.163.com
    default-encoding: utf-8
    protocol: smtp
    properties:
      mail:
        smtp:
          connectiontimeout: 5000
          timeout: 3000

management:
  endpoints:
    web:
      base-path: /
logging:
  level:
    com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder: debug
file:
  dist-path: /app/disk/upload/
  white-list: .png|.jpg|.gif|.icon|.pdf|.xlsx|.xls|.csv|.mp4|.avi
  excelSuffix: .xlsx|.xls|.csv
  downloadPath: http://10.108.26.197:9095/file/download

