application-sdev.yml 3.12 KB
Newer Older
Administrator committed
1 2 3 4 5 6
#加密配置
jasypt:
  encryptor:
    password: techhero
spring:
  redis:
7
    database: 10
Administrator committed
8
    remote: false        #cachecloud 获取
9 10
    host: redisServer
    hostName: redisServer #183.95.190.112
11
    port: 30102
12
    password: EtgJXLsRMXFct4P3zxBxLNczBNaaP92z
Administrator committed
13 14 15 16 17 18 19
    timeout: 0
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
  rabbitmq:
20
    host: rabbitmqServer
Administrator committed
21 22 23
    port: 5672
    username: rabbit
    password: rabbit-techhero
24
    virtual-host: /sdev
Administrator committed
25 26
    listener:
      simple:
27
        acknowledge-mode: auto
Administrator committed
28 29 30 31 32 33 34 35
        retry:
          enabled: true
          max-attempts: 5
    #消息确认配置项
    #确认消息已发送到交换机(Exchange)
    publisher-confirms: true
    #确认消息已发送到队列(Queue)
    publisher-returns: true
36 37 38 39 40 41
  http:
    multipart:
      enabled: true
      file-size-threshold: 1000Mb
      max-file-size: 2048Mb
      max-request-size: 2048Mb
42

Administrator committed
43 44 45 46 47 48 49 50
cache:
  redis:
    expires:
      entity:30;account:30;

ribbon:
  eureka:
    enabled: true
51 52 53 54
  httpclient:
    enabled: false
  okhttp:
    enabled: true
Administrator committed
55 56
  eager-load:
    enabled: true
57
    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
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
  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:
117 118
    exchange: topicCzlsLogExchangeSdev
    queue: topic.czlsLog.sdev
119
  incidentReporting:
120 121
    exchange: topic-sdev-incident-reporting-exchange
    queue: topic.sdev.incidentReporting.queue
122
  alarmMessage:
123 124
    exchange: alarm-message-sdev
    queue: Alarm-Event-Msg-sdev
125 126 127
    
server:
  tomcat: 
128
    basedir: ${user.dir}/data/temp/upload #上传文件的临时存放点
129 130 131 132 133 134 135

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