server:
  port: @profiles.server.port@
  servlet:
    context-path: /m
spring:
  application:
    name: device-manager
    profiles:
      active: @profiles.active@
  servlet:
    multipart:
      max-file-size: 100MB
      max-request-size: 1000MB
  jackson:
    serialization:
      WRITE_DATES_AS_TIMESTAMPS: true
    default-property-inclusion: NON_NULL
#    time-zone: GMT+8
#    date-format: yyyy-MM-dd HH:mm:ss
  security:
    enable: true
    user:
      name: admin
      password: 1
  redis:
    host: @profiles.redis.uri@
    port: @profiles.redis.port@
    username: @profiles.redis.username@
    password: @profiles.redis.password@
    database:  @profiles.redis.database@
    timeout: 30000
    pool:
      max-idle: 30
      min-idle: 0
      max-active: 100
      max-wait: 1000
  cloud:
    nacos:
      # Nacos 作为注册中心的配置项,对应 NacosDiscoveryProperties 配置类
      discovery:
        server-addr: @profiles.nacos.server-addr@ # Nacos 服务器地址
        group: @profiles.nacos.group@
        namespace: @profiles.nacos.namespace@
      config:
        server-addr: ${spring.cloud.nacos.discovery.server-addr} # Nacos 服务器地址
        group: ${spring.cloud.nacos.discovery.group}
        namespace: ${spring.cloud.nacos.discovery.namespace} # Nacos 命名空间 dev 的编号
        file-extension: yaml
  dao:
    exceptiontranslation:
      enabled: false
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    #driver-class-name: com.p6spy.engine.spy.P6SpyDriver
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: @profiles.datasource.uri@
    username: @profiles.datasource.username@
    password: @profiles.datasource.password@

mybatis:
  root-path: com.mortals
  type-aliases-package: com.mortals.framework.model,com.mortals.xhx.common.**.model,com.mortals.xhx.**.model
  mapper-locations: classpath*:sqlmap/**/*.xml
  config-location: classpath*:config/mybatis-sqlmap-config.xml
  
application:
  auth:
    unloginUrl: /refresh,/error,/login/login,/login/index,/login/logout,/securitycode/createCode,/file/common/*,/test*,/device/*,/api/*
    uncheckUrl: /refresh,/error,/login/login,/login/index,/login/logout,/securitycode/createCode,/file/common/*,/test*,/device/*,/api/*
  registerApiPath: /api/register
  deviceInitApiPath: /api/deviceInit
  deviceUpdateApiPath: /api/deviceUpdate
cookie:
  ssoServerUrl: http://sso.testnew.com
  key: 026db82420614469897fcc2dc1b4ce38
  domain: 192.168.0.98
  port: 11010
upload:
  path: @profiles.filepath@

queue:
  type: @profiles.queue.type@ # memory or kafka (Apache Kafka) or rabbitmq (RabbitMQ)
  core:
    topic: tb_core
    poll-interval: 25
    partitions: 10
    pack-processing-timeout: 2000
  in_memory:
    stats:
      print-interval-ms: 60000
  kafka:
    bootstrap.servers: @profiles.kafka.brokers@
    acks: all
    retries: 1
    batch.size: 16384
    linger.ms: 1
    buffer.memory: 33554432
    replication_factor: 1
    max_poll_interval_ms: 300000
    max_poll_records: 8192
    max_partition_fetch_bytes: 16777216
    fetch_max_bytes: 134217728
    use_confluent_cloud: false
    consumer-stats:
      enabled: true
      print-interval-ms: 60000
      kafka-response-timeout-ms: 1000
  rabbitmq:
    exchange_name: @profiles.rabbitmq.exchange@
    host: @profiles.rabbitmq.host@
    port: @profiles.rabbitmq.port@
    virtual_host: @profiles.rabbitmq.virtualhost@
    username: @profiles.rabbitmq.username@
    password: @profiles.rabbitmq.password@
    automatic_recovery_enabled: false
    connection_timeout: 5000
    handshake_timeout: 10000
    queue-properties:
      x-message-ttl: 86400000
      x-max-length-bytes: 1048576000

# token配置
token:
  # 令牌自定义标识
  header: Authorization
  # 令牌密钥
  secret: 026db82420614469897fcc2dc1b4ce38
  # 令牌有效期(一天)
  expireTime: 1440
  # 令牌前缀
  prefix:
# 基础服务平台用户名与密码
baseplatform:
  httpUrl: http://192.168.0.98:11071/base/
  loginName: admin
  password: admin