application-anhui-dev.yml 3.46 KB
Newer Older
Administrator committed
1 2 3 4 5 6 7
#加密配置
jasypt:
  encryptor:
    password: techhero
spring:
  redis:
    remote: false        #cachecloud 获取
8 9 10 11
    host: 119.96.87.17
    #host: 127.0.0.1
    hostName: 119.96.87.17 #183.95.190.112
    #hostName: 127.0.0.1
Administrator committed
12
    port: 6379
13 14
    password: techhero
    #password: 123456
Administrator committed
15
    timeout: 0
16
    database: 3
Administrator committed
17 18 19 20 21
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
22 23 24 25 26
  redisMac:
    remote: false        #cachecloud 获取
    host: 81.70.218.156
    hostName: 81.70.218.156 #183.95.190.112
    port: 6379
27
    password: fcd258Kf
28 29 30 31 32 33 34
    timeout: 0
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0

Administrator committed
35
  rabbitmq:
36
    host: 119.96.87.17
Administrator committed
37 38 39
    port: 5672
    username: rabbit
    password: rabbit-techhero
40
    virtual-host: /local
Administrator committed
41 42
    listener:
      simple:
43
        acknowledge-mode: auto
44 45 46
        retry:
          enabled: true
          max-attempts: 5
47 48 49 50 51
    #消息确认配置项
    #确认消息已发送到交换机(Exchange)
    publisher-confirms: true
    #确认消息已发送到队列(Queue)
    publisher-returns: true
52 53 54
  #sleuth:
  #  sampler:
  #    percentage: 1.0    
55 56 57 58 59 60
  http:
    multipart:
      enabled: true
      file-size-threshold: 1000Mb
      max-file-size: 2048Mb
      max-request-size: 2048Mb
61 62 63 64
  boot:
    admin:
      auto-registration: true
      #url: http://119.96.87.17:10422
65
      #url: http://127.0.0.1:10422
66 67
      client:
        service-base-url: 127.0.0.1:10422
68
      api-path: instances
69

CnNoter committed
70

Administrator committed
71 72 73 74 75 76 77 78 79 80
cache:
  redis:
    expires:
      entity:30;account:30;

ribbon:
  eureka:
    enabled: true
  eager-load:
    enabled: true
81
    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-component-xy
Administrator committed
82 83 84 85
  Httpclient:
    enabled: false
  OkHttp:
    enabled: true
86 87
  ReadTimeout: 100000
  ConnectTimeout: 100000
CnNoter committed
88

Administrator committed
89 90 91 92 93 94 95 96 97 98
feign:
  hystrix:
    enabled: true
  okhttp:
    enabled: true
  httpclient:
    enabled: false
  client:
    config:
      feignName:
99 100
        connectTimeout: 100000
        readTimeout: 100000
Administrator committed
101 102 103 104 105
  compression:
    request:
      enabled: true
    response:
      enabled: true
CnNoter committed
106

Administrator committed
107 108 109 110 111 112 113 114 115 116 117 118 119
hystrix:
  threadpool:
    default:
      coreSize: 10
      maxQueueSize: 1000
      queueSizeRejectionThreshold: 800
    circuitBreaker:
      requestVolumeThreshold: 100 #熔断失败个数 超过既发生短路 默认20个
  command:
    default:
      execution:
        isolation:
          thread:
120
            timeoutInMilliseconds: 400000
Administrator committed
121 122 123 124
    fallback:
      isolation:
        semaphore:
          maxConcurrentRequests: 50 #回退线程数量
CnNoter committed
125
tomcat:
Administrator committed
126 127 128 129 130
  max-connections: 500
  max-threads: 30
  min-spare-threads: 3
  accept-count: 10

131

132 133 134

rabbitmq:
  czlsLog:
135 136
    exchange: topicCzlsLogExchangeLocal
    queue: topic.czlsLog.local
137 138
    exchange2: topicCzlsLogExchangeLocal2
    queue2: topic.czlsLog.local2
139
  incidentReporting:
140 141
    exchange: topic-local-incident-reporting-exchange
    queue: topic.local.incidentReporting.queue
142
  alarmMessage:
143
    exchange: alarm-message-local
144
    queue: Alarm-Event-Msg-local
145 146 147 148
  parametersMessage:
    exchange: parameters-message-test
    queue: parameters-Event-message-test

149

150 151 152 153 154
s3:
  endpoint: "http://119.96.87.17:30107"
  accessKey: jxTmLD0YcODFdPRv
  secretKey: hLZ4fN8P3BfTjbnwKbN35SacSXgLgwg7
  bucketName: dev
155