#加密配置
jasypt:
  encryptor:
    password: techhero
spring:
  redis:
    database: 10
    remote: false        #cachecloud 获取
    host: redisServer
    hostName: redisServer #183.95.190.112
    port: 30102
    password: EtgJXLsRMXFct4P3zxBxLNczBNaaP92z
    timeout: 0
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
  rabbitmq:
    host: rabbitmqServer
    port: 5672
    username: rabbit
    password: rabbit-techhero
    virtual-host: /sdev
    listener:
      simple:
        acknowledge-mode: auto
        retry:
          enabled: true
          max-attempts: 5
    #消息确认配置项
    #确认消息已发送到交换机(Exchange)
    publisher-confirms: true
    #确认消息已发送到队列(Queue)
    publisher-returns: true
  http:
    multipart:
      enabled: true
      file-size-threshold: 1000Mb
      max-file-size: 2048Mb
      max-request-size: 2048Mb

cache:
  redis:
    expires:
      entity:30;account:30;

ribbon:
  eureka:
    enabled: true
  httpclient:
    enabled: false
  okhttp:
    enabled: true
  eager-load:
    enabled: true
    clients: techhero-auth,techhero-base-system,techhero-base-exam,techhero-base-transdata,techhero-project-theme,techhero-project-emergencycommand,techhero-project-track,techhero-project-visualization,techhero-preventioncheat,techhero-component-task,techhero-component-oss,techhero-component-websocket,techhero-component-message,techhero-component-workflow,techhero-project-inspection,techhero-base-datagovern
  ReadTimeout: 10000
  ConnectTimeout: 10000

feign:
  hystrix:
    enabled: true
  okhttp:
    enabled: true
  httpclient:
    enabled: false
  client:
    config:
      feignName:
        connectTimeout: 10000
        readTimeout: 10000
  compression:
    request:
      enabled: true
    response:
      enabled: true

hystrix:
  threadpool:
    default:
      coreSize: 10
      maxQueueSize: 1000
      queueSizeRejectionThreshold: 800
    circuitBreaker:
      requestVolumeThreshold: 100 #熔断失败个数 超过既发生短路 默认20个
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 40000
    fallback:
      isolation:
        semaphore:
          maxConcurrentRequests: 50 #回退线程数量
tomcat:
  max-connections: 500
  max-threads: 30
  min-spare-threads: 3
  accept-count: 10

# 关闭安全管理
management:
  security:
    enabled: false
#   endpoints:
#     web:
#       exposure:
#         include: '*'
#   endpoint:
#     health:
#       show-details: ALWAYS

rabbitmq:
  czlsLog:
    exchange: topicCzlsLogExchangeSdev
    queue: topic.czlsLog.sdev
  incidentReporting:
    exchange: topic-sdev-incident-reporting-exchange
    queue: topic.sdev.incidentReporting.queue
  alarmMessage:
    exchange: alarm-message-sdev
    queue: Alarm-Event-Msg-sdev
    
server:
  tomcat: 
    basedir: ${user.dir}/data/temp/upload #上传文件的临时存放点

oss:
  bucketName: jyksy-gjjybzh
  httpEndpoint: ctyoss.chutianyun.gov.cn:8060
  httpsEndpoint: https://ctyoss.chutianyun.gov.cn:10443
  accessKey: L3B7SA05OXT0V9WKD02N
  secretKey: D0O4yTDqBCteH0p5dAgRibxZ8rNSLg0PShFF94IL