server:
  port: ${liquidnet.info.port}
  tomcat:
    uri-encoding: UTF-8
    maxThreads: 2000 #默认200
    minSpareThreads: 200 #默认10
    maxConnections: 20000 #默认10000
    acceptCount: 5000  #默认100
    processorCache: -1  #默认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: 200MB
    max-history: ${liquidnet.logfile.max-history}
  pattern:
    file: '%d{yyyy-MM-dd HH:mm:ss.SSS} [%level] %X{lnsTranceId} [%logger{56}:%line] - %msg%n'
    console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [%level] %X{lnsTranceId} [%logger{56}:%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: zhengzai.tv
  build:
    groupId: '@project.groupId@'
    artifactId: '@project.artifactId@'
    version: '@project.version@'
# -----------------------------------------------------------
#mybatis-plus:
#  mapper-locations: classpath*:com.liquidnet.service.*.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
#  rabbitmq:
#    addresses: ${liquidnet.rabbitmq.host}
#    port: ${liquidnet.rabbitmq.port}
#    username: ${liquidnet.rabbitmq.username}
#    password: ${liquidnet.rabbitmq.password}
#    virtual-host: ${liquidnet.rabbitmq.virtual-host}
#    connection-timeout: ${liquidnet.rabbitmq.connection-timeout}
  redis:
    queue:
      database: ${liquidnet.redis.queue.database}
      port: ${liquidnet.redis.queue.port}
      host: ${liquidnet.redis.queue.host}
      password: ${liquidnet.redis.queue.password}
      lettuce:
        pool:
          max-active: 8
          max-wait: -1
          max-idle: 8
          min-idle: 0
    database: 0
    #如果配置了dbs，则database配置失效 格式为0,16   0为分库初始索引(目前只支持从0开始)，16为redis总的db数，队列会自动创建在db15
    #如果配置了dbs为具体dbNo 如：0  则作用同database配置一样
    dbs: ${liquidnet.redis.dragon.dbs}
    port: ${liquidnet.redis.dragon.port}
    host: ${liquidnet.redis.dragon.host}
    password: ${liquidnet.redis.dragon.password}
    lettuce:
      pool:
        max-active: 16
        max-wait: -1
        max-idle: 8
        min-idle: 4
# -----------------------------------------------------------

# -----------------------------------------------------------
global-auth:
  exclude-url-pattern: # 模式I（与模式II互斥）
#    - ${liquidnet.info.context}/**
  include-url-pattern: # 模式II（与模式I互斥）
#    - ${liquidnet.info.context}/**
# -----------------------------------------------------------

# -----------------------------------------------------------
# ---------------------以下为银联支付--------------------------------------
##交易请求地址
acpsdk:
  ## 消费接口
  frontTransUrl: ${liquidnet.dragon.unionpay.gateway-url}/gateway/api/frontTransReq.do
  ## app 消费接口
  appTransUrl: ${liquidnet.dragon.unionpay.gateway-url}/gateway/api/appTransReq.do
  ## 交易状态查询
  backTransUrl: ${liquidnet.dragon.unionpay.gateway-url}/gateway/api/backTransReq.do
  ## 交易状态查询：app用的路径
  singleQueryUrl: ${liquidnet.dragon.unionpay.gateway-url}/gateway/api/queryTrans.do
  ##  退款路径  (https://gateway.95516.com/gateway/api/backTransReq.do)
  refundUrl: ${liquidnet.dragon.unionpay.refund-url}/gateway/api/backTransReq.do
  ########################################################################
  ########################################################################
  # 报文版本号，固定5.1.0，请勿改动
  version: 5.1.0
  # 签名方式，证书方式固定01，请勿改动
  signMethod: '01'
  # 是否验证验签证书的CN，测试环境请设置false，生产环境请设置true。非false的值默认都当true处理。
  ifValidateCNName: false
  # 是否验证https证书，测试环境请设置false，生产环境建议优先尝试true，不行再false。非true的值默认都当false处理。
  ifValidateRemoteCert: false
  #后台通知地址，填写接收银联后台通知的地址，必须外网能访问
  #backUrl: http://222.222.222.222:8080/ACPSample_AppServer/backRcvResponse
  #前台通知地址，填写处理银联前台通知的地址，必须外网能访问
  #frontUrl: http://localhost:8080/ACPSample_AppServer/frontRcvResponse
  #########################入网测试环境签名证书配置 ################################
  # 多证书的情况证书路径为代码指定，可不对此块做配置。
  # 签名证书路径，必须使用绝对路径，如果不想使用绝对路径，可以自行实现相对路径获取证书的方法；测试证书所有商户共用开发包中的测试签名证书，生产环境请从cfca下载得到。
  # windows样例：
  signCertPath: ${liquidnet.dragon.unionpay.certs-path}/${liquidnet.dragon.unionpay.certs-prefix}_sign.pfx

  # 签名证书密码，测试环境固定000000，生产环境请修改为从cfca下载的正式证书的密码，正式环境证书密码位数需小于等于6位，否则上传到商户服务网站会失败
  signCertPwd: ${liquidnet.dragon.unionpay.pfx-pwd}
  # 签名证书类型，固定不需要修改
  signCertType: PKCS12
  ##########################加密证书配置################################
  # 敏感信息加密证书路径(商户号开通了商户对敏感信息加密的权限，需要对 卡号accNo，pin和phoneNo，cvn2，expired加密（如果这些上送的话），对敏感信息加密使用)
  encryptCertPath: ${liquidnet.dragon.unionpay.certs-path}/${liquidnet.dragon.unionpay.certs-prefix}_enc.cer
  ##########################验签证书配置################################
  # 验签中级证书路径(银联提供)
  middleCertPath: ${liquidnet.dragon.unionpay.certs-path}/${liquidnet.dragon.unionpay.certs-prefix}_middle.cer
  # 验签根证书路径(银联提供)
  rootCertPath: ${liquidnet.dragon.unionpay.certs-path}/${liquidnet.dragon.unionpay.certs-prefix}_root.cer
apple:
  urlVerify: ${liquidnet.dragon.apple.urlVerify}