application.yml 1.0 KB
Newer Older
M
ManongJu 已提交
1 2
spring:
  application:
M
ManongJu 已提交
3
    name: mss-gateway
M
ManongJu 已提交
4
server:
M
ManongJu 已提交
5 6 7
  port: 9030
eureka:
  instance:
M
ManongJu 已提交
8 9
    prefer-ip-address: true
    instance-id: ${spring.cloud.client.ip-address}:${server.port}
M
ManongJu 已提交
10 11
    lease-renewal-interval-in-seconds: 5
    lease-expiration-duration-in-seconds: 10
M
ManongJu 已提交
12 13
  client:
      service-url:
M
ManongJu 已提交
14
        defaultZone: http://mss-eureka1:9010/eureka/,http://mss-eureka2:9011/eureka/
M
SSO  
ManongJu 已提交
15
zuul:
M
ManongJu 已提交
16 17 18
  host:
    connect-timeout-millis: 10000
    socket-timeout-millis: 60000
M
SSO  
ManongJu 已提交
19 20 21 22 23
  routes:
    uaa:
      path: /uaa/**
      strip-prefix: true
      sensitiveHeaders:
M
ManongJu 已提交
24
      serviceId: authcenter
M
ManongJu 已提交
25 26 27 28 29
security:
  oauth2:
    resource:
      user-info-uri:  http://localhost:9060/user
      prefer-token-info: false
M
ManongJu 已提交
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
##############end#####################
####超时配置####
ribbon:
  ReadTimeout: 10000
  ConnectTimeout: 10000
  MaxAutoRetries: 1
  MaxAutoRetriesNextServer: 2
  eureka:
    enabled: true
hystrix:
  command:
    default:
      execution:
        timeout:
          enabled: true
        isolation:
          thread:
            timeoutInMilliseconds: 600000
###超时配置###