application-saier.yml 3.37 KB
Newer Older
Administrator committed
1 2 3 4 5 6
#加密配置
jasypt:
  encryptor:
    password: techhero
spring:
  redis:
7
    database: 7
Administrator committed
8
    remote: false        #cachecloud 获取
9 10 11 12
    #host: 119.96.99.9
    #hostName: 119.96.99.9 #183.95.190.112
    #port: 6379
    #password: 123456
13 14 15 16
    host: redisServer
    hostName: redisServer #183.95.190.112
    port: 30102
    password: EtgJXLsRMXFct4P3zxBxLNczBNaaP92z
Administrator committed
17 18 19 20 21 22 23
    timeout: 0
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
  rabbitmq:
24
    host: 119.96.87.17
Administrator committed
25 26 27
    port: 5672
    username: rabbit
    password: rabbit-techhero
28
    virtual-host: /test
Administrator committed
29 30
    listener:
      simple:
31
        acknowledge-mode: auto
32 33 34 35 36 37 38 39
        retry:
          enabled: true
          max-attempts: 5
    #消息确认配置项
    #确认消息已发送到交换机(Exchange)
    publisher-confirms: true
    #确认消息已发送到队列(Queue)
    publisher-returns: true
40
  zipkin:
41
    #base-url=http://localhost:11008
42 43 44 45 46 47 48 49
    enabled: true
    sender:
      type: rabbit
    rabbitmq:
      queue: zipkin
  sleuth:
    sampler:
      percentage: 1.0    
50 51 52 53 54 55
  http:
    multipart:
      enabled: true
      file-size-threshold: 1000Mb
      max-file-size: 2048Mb
      max-request-size: 2048Mb
56
      
57 58 59 60
  boot:
    admin:
      auto-registration: true
      #url: http://119.96.87.17:10422
61 62
    #   url: http://127.0.0.1:10422
      url: http://192.168.0.19
63
      api-path: instances
CnNoter committed
64

Administrator committed
65 66 67 68 69 70 71 72 73 74
cache:
  redis:
    expires:
      entity:30;account:30;

ribbon:
  eureka:
    enabled: true
  eager-load:
    enabled: true
75
    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,techhero-component-xy
Administrator committed
76 77 78 79 80 81
  Httpclient:
    enabled: false
  OkHttp:
    enabled: true
  ReadTimeout: 10000
  ConnectTimeout: 10000
CnNoter committed
82

Administrator committed
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
feign:
  hystrix:
    enabled: true
  okhttp:
    enabled: true
  httpclient:
    enabled: false
  client:
    config:
      feignName:
        connectTimeout: 10000
        readTimeout: 10000
  compression:
    request:
      enabled: true
    response:
      enabled: true
CnNoter committed
100

Administrator committed
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
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 #回退线程数量
CnNoter committed
119
tomcat:
Administrator committed
120 121 122 123 124
  max-connections: 500
  max-threads: 30
  min-spare-threads: 3
  accept-count: 10

125 126 127
# 关闭安全管理
management:
  security:
128
    enabled: true
129 130 131 132 133 134 135
#   endpoints:
#     web:
#       exposure:
#         include: '*'
#   endpoint:
#     health:
#       show-details: ALWAYS
136

137 138 139 140 141
rabbitmq:
  czlsLog:
    exchange: topicCzlsLogExchangeTest
    queue: topic.czlsLog.test
  incidentReporting:
142 143
    exchange: topic-test-incident-reporting-exchange
    queue: topic.test.incidentReporting.queue
144
  alarmMessage:
145
    exchange: alarm-message-test
146
    queue: Alarm-Event-Msg-test
147 148 149
    
server:
  tomcat: 
150
    basedir: /data/temp/upload #上传文件的临时存放点