server:
  port: 8000
  tomcat:
    accesslog:
      enabled: true
      buffered: true
      directory: /var/logs
      file-date-format: -yyyy-MM-dd
      pattern: common
      prefix: tomcat-gateway
      rename-on-rotate: false
      request-attributes-enabled: false
      rotate: true
      suffix: .log

spring:
  application:
    name: gateway-web

  servlet:
    multipart:
      # 最大支持文件大小
      max-file-size: 50MB
      # 最大支持请求大小
      max-request-size: 50MB

eureka:
  client:
    serviceUrl:
      defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
    instance:
      lease-renewal-interval-in-seconds: 5

ribbon:
  eureka:
    enable: true
  ReadTimeout: 30000
  ConnectTimeout: 10000

### 配置网关反向代理
zuul:
  routes:
    api-auth:
      ### 以 /api-auth/访问转发到会员服务
      path: /api-auth/**
      serviceId: auth-server
      #url: http://localhost:8001/
      ##加上下面参数，可将header信息传递至下游
      #sensitiveHeaders:
    api-task:
      ### 以 /api-auth/访问转发到会员服务
      path: /api-task/**
      serviceId: task-server
      #url: http://localhost:8001/
      ##加上下面参数，可将header信息传递至下游
      #sensitiveHeaders:
    api-cms:
      ### 以 /api-auth/访问转发到会员服务
      path: /api-cms/**
      serviceId: cms-server
      #url: http://localhost:8001/
      ##加上下面参数，可将header信息传递至下游
      #sensitiveHeaders:
    api-web:
      ### 以 /api-auth/访问转发到会员服务
      path: /api-web/**
      serviceId: web-server
      #url: http://localhost:8001/
      ##加上下面参数，可将header信息传递至下游
      #sensitiveHeaders: Cookie,Set-Cookie
    api-im:
      ### 以 /api-auth/访问转发到会员服务
      path: /api-im/**
      serviceId: im-server
      #url: http://localhost:8001/
      ##加上下面参数，可将header信息传递至下游
      #sensitiveHeaders:
    api-student:
      ### 以 /api-auth/访问转发到会员服务
      path: /api-student/**
      serviceId: student-server
      #url: http://localhost:8001/
      ##加上下面参数，可将header信息传递至下游
      #sensitiveHeaders:
    api-teacher:
      ### 以 /api-auth/访问转发到会员服务
      path: /api-teacher/**
      serviceId: teacher-server
      #url: http://localhost:8001/
      ##加上下面参数，可将header信息传递至下游
      #sensitiveHeaders:
    api-education:
      ### 以 /api-auth/访问转发到会员服务
      path: /api-education/**
      serviceId: education-server
      #url: http://localhost:8001/
      ##加上下面参数，可将header信息传递至下游
      #sensitiveHeaders:
  #忽略某个微服务
  ignored-services: eureka-server
  #重试
  retryable: false
  host: 
    #连接超时
    connectTimeoutMillis: 600000
  ribbon-isolation-strategy: SEMAPHORE
  sensitiveHeaders:

hystrix:
  command:
    default:
      execution:
        isolation:
          strategy: SEMAPHORE
          thread:
            #发生熔断的超时时间
            timeoutInMilliseconds: 90000
          semaphore:
            maxConcurrentRequests: 500


#spring boot admin 相关配置
management:
  endpoints:
    web:
      exposure:
        include: "*"
  endpoint:
    health:
      show-details: ALWAYS