server:
  port: ${liquidnet.info.port}
  tomcat:
    uri-encoding: UTF-8
    maxThreads: 2000 #默认200
    minSpareThreads: 2000 #默认10
    maxConnections: 20000 #默认10000
    acceptCount: 5000  #默认100
    processorCache: 5000  #默认200
  servlet:
    context-path: ${liquidnet.info.context}
# -----------------------------------------------------------
knife4j:
  enable: true
  production: ${liquidnet.knife4j.disable}
  basic:
    enable: true
    username: ${liquidnet.security.username}
    password: ${liquidnet.security.password}
# -----------------------------------------------------------
logging:
#  config: ${liquidnet.logfile.config}
  file:
    name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}.log
    max-size: ${liquidnet.logfile.file-max-size}
  pattern:
    file: '%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %X{lnsTranceId} [%logger{96}:%line] - %msg%n'
    console: '%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %X{lnsTranceId} [%logger{96}:%line] - %msg%n'
    rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log
  level:
    root: error
    #以下是为指定包设置日志级别
    com.liquidnet.service.feign: error
    com.liquidnet: ${liquidnet.logfile.level}
# -----------------------------------------------------------
eureka:
#  client:
#    register-with-eureka: true
#    fetch-registry: true
#    serviceUrl:
#      defaultZone: http://${liquidnet.security.username}:${liquidnet.security.password}@${liquidnet.eureka.host}/eureka-server/eureka
  instance:
    hostname: ${spring.cloud.client.ip-address}
    lease-expiration-duration-in-seconds: 15 #服务过期时间配置,超过这个时间没有接收到心跳EurekaServer就会将这个实例剔除
    lease-renewal-interval-in-seconds: 5 #服务刷新时间配置，每隔这个时间会主动心跳一次
    prefer-ip-address: true
    instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${spring.application.instance_id:${server.port}}
# -----------------------------------------------------------
#actuator/info
info:
  app:
    name: ${liquidnet.info.name}
  company:
    name: lightnet.io
  build:
    groupId: '@project.groupId@'
    artifactId: '@project.artifactId@'
    version: '@project.version@'
# -----------------------------------------------------------
mybatis-plus:
  mapper-locations: classpath:com.liquidnet.service.adam.mapper/*Mapper.xml
# -----------------------------------------------------------
spring:
  application:
    name: ${liquidnet.info.name}
  servlet:
    multipart:
      max-file-size: 5MB
      max-request-size: 10MB
  profiles:
    include: common-service #这里加载management相关公共配置
  autoconfigure:
    exclude:
      - org.springframework.cloud.bus.BusAutoConfiguration
      - org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
      - org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
  redis:
    database: 15
    dbs: ${liquidnet.redis.adam.dbs}
    port: ${liquidnet.redis.adam.port}
    host: ${liquidnet.redis.adam.host}
    password: ${liquidnet.redis.adam.password}
    lettuce:
      pool:
        max-active: 5
        max-wait: -1
        max-idle: 8
        min-idle: 0
# -----------------------------------------------------------

# -----------------------------------------------------------
global-auth:
  exclude-url-pattern: # 模式I（与模式II互斥）
    - ${liquidnet.info.context}/doc.html
    - ${liquidnet.info.context}/webjars/**
    - ${liquidnet.info.context}/swagger-resources/**
    - ${liquidnet.info.context}/v2/api-docs*
    - ${liquidnet.info.context}/ath/check
    - ${liquidnet.info.context}/login/*
    - ${liquidnet.info.context}/gen
    - ${liquidnet.info.context}/ts
    - ${liquidnet.info.context}/send
    - ${liquidnet.info.context}/member/info
    - ${liquidnet.info.context}/member/joininfo
    - ${liquidnet.info.context}/member/info/rights
    - ${liquidnet.info.context}/member/onsale
    - ${liquidnet.info.context}/member/check/depth
    - ${liquidnet.info.context}/member/check/depth/new
    - ${liquidnet.info.context}/member/order/callback
    - ${liquidnet.info.context}/enters/query/depth
    - ${liquidnet.info.context}/addr/query/depth
    - ${liquidnet.info.context}/plz/ad
    - ${liquidnet.info.context}/wxa/code2session
    - ${liquidnet.info.context}/wx/oauth2/access_token
    - ${liquidnet.info.context}/rsc/**
  include-url-pattern: # 模式II（与模式I互斥）
#    - ${liquidnet.info.context}/**
  oncheck-url-pattern:
#    - ${liquidnet.info.context}/**
# -----------------------------------------------------------

# -----------------------------------------------------------