spring:
  redis:
    database: 15
    host: dev-env
    port: 6379
    password: techhero
    timeout: 0
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
  rabbitmq:
    host: dev-env
    port: 5672
    username: rabbit
    password: rabbit-techhero
    virtual-host: /product
    listener:
      simple:
        acknowledge-mode: manual  # 消息确认方式,其有三种配置方式,分别是none、manual(手动ack) 和auto(自动ack) 默认auto
    publisher-confirms: true #确认消息已发送到交换机(Exchange)
    publisher-returns: true #确认消息已发送到队列(Queue)
zuul:
  host:
    connect-timeout-millis: 20000
    socket-timeout-millis: 20000
    max-total-connections: 500
  ignoredServices: '*'


hystrix:
  command:
    default:
      execution:
        timeout:
          enabled: true
        isolation:
          thread:
            #配置hystrix的超时时间,要大于(RibbonReadTimeout + RibbonConnectTimeout) * (MaxAutoRetries + 1) * (MaxAutoRetriesNextServer + 1)
            timeout-in-milliseconds: 20000
            strategy: SEMAPHORE
  thread-pool:
    default:
      coreSize: 10
      maxQueueSize: 1000
      queueSizeRejectionThreshold: 800
    circuitBreaker:
      requestVolumeThreshold: 100 #熔断失败个数 超过既发生短路 默认20个
    fallback:
      isolation:
        semaphore:
          maxConcurrentRequests: 50 #回退线程数量
security:
  sessions: stateless
  oauth2:
    client:
      client-id: gateway_client
      client-secret: techhero
    resource:
      jwt:
        key-uri: http://127.0.0.1:15803/oauth/token_key #解析jwt令牌所需要密钥的地址
        #key-value: techhero
    authorization:
      check-token-access: http://techhero-framework-auth/oauth/check_token
      
gateway:
  allowed:
    origins:
      - '*'
      - http://192.168.0.151:15800
      - http://119.96.87.17:18098
      - http://119.96.87.17:10201
      - http://127.0.0.1:8084
      - http://127.0.0.1:15801
      - https://account.aliyun.com
      - https://datav.aliyun.com
      - http://datav.aliyun.com
      - http://cdn-service-datav.aliyun.com
      
ignore:
  urls:
    - /*/open/**
    - /swagger/api-docs
    - /swagger-resources/**
    - /swagger-ui.html
    - /*/v2/api-docs
    - /webjars/**
    - /auth/**
    - /oss/**
    - /system/db/getUserListPage/**
    - /exam/dc/rest/dcKsjhb/getExamPlan
    - /system/vc/code
    - /insp/rest/file/web/plist
    - /config/bus/refresh
    - /config/env