gateway.yml 4.64 KB
server:
  port: 15300

spring:
  profiles: development
  cloud:
    config:
      discovery:
        enabled: true

endpoints:
  restart:
    enabled: true
  shutdown:
    enabled: true
  health:
    sensitive: false

zuul:
  host:
    connect-timeout-millis: 10000
    socket-timeout-millis: 60000
  routes:
    users:
      #url: http://user-service:16100
      serviceId: user-service
    classes:
      #url: http://class-service:16200
      serviceId: class-service

hystrix:
  command:
    default:
      execution:
        timeout:
          enabled: true
        isolation:
          thread:
            timeoutInMilliseconds: 60000

#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
ribbon:
  eureka:
    enabled: true
  UseIPAddrForServer: true
  ReadTimeout: 5000
  ConnectTimeout: 10000


eureka:
  instance:
    hostname: gateway
    perferIpAddress: true
    instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  client:
    leaseRenewalIntervalInSeconds: 5
    leaseExpirationDurationInSeconds: 12
    registerWithEureka: true
    fetchRegistry: true
    serviceUrl:
      defaultZone: http://discovery:15200/eureka/

cas:
  encoding: UTF-8
  casServerUrlPrefix: https://cas.gaoxiaobang.com/
  casServerLoginUrl: https://cas.gaoxiaobang.com/login
  casServerLogoutUrl: https://cas.gaoxiaobang.com/logout
  ignorePattern: (^(/mvc/goto/)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)

tenant:
  tenantId: 991

---
server:
  port: 15300

spring:
  profiles: test
  cloud:
    config:
      discovery:
        enabled: true

endpoints:
  restart:
    enabled: true
  shutdown:
    enabled: true
  health:
    sensitive: false

zuul:
  routes:
    users:
      #url: http://user-service:16100
      serviceId: user-service
    classes:
      #url: http://class-service:16200
      serviceId: class-service

hystrix:
  command:
    default:
      execution:
        timeout:
          enabled: true
        isolation:
          thread:
            timeoutInMilliseconds: 10000

#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
ribbon:
  eureka:
    enabled: true
  UseIPAddrForServer: true
  ReadTimeout: 5000
  ConnectTimeout: 10000


eureka:
  instance:
    hostname: gateway
    perferIpAddress: true
  client:
    registerWithEureka: true
    fetchRegistry: true
    serviceUrl:
      defaultZone: http://discovery:15200/eureka/

cas:
  encoding: UTF-8
  casServerUrlPrefix: https://cas.gaoxiaobang.com/
  casServerLoginUrl: https://cas.gaoxiaobang.com/login
  casServerLogoutUrl: https://cas.gaoxiaobang.com/logout
  ignorePattern: (^(/mvc/goto/)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)

tenant:
  tenantId: 991
  
---
server:
  port: 15300

spring:
  profiles: production
  cloud:
    config:
      discovery:
        enabled: true

endpoints:
  restart:
    enabled: true
  shutdown:
    enabled: true
  health:
    sensitive: false

zuul:
  routes:
    users:
      #url: http://user-service:16100
      serviceId: user-service
    classes:
      #url: http://class-service:16200
      serviceId: class-service

hystrix:
  command:
    default:
      execution:
        timeout:
          enabled: true
        isolation:
          thread:
            timeoutInMilliseconds: 10000

#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
ribbon:
  eureka:
    enabled: true
  UseIPAddrForServer: true
  ReadTimeout: 5000
  ConnectTimeout: 10000
  

eureka:
  instance:
    hostname: gateway
    perferIpAddress: true
  client:
    registerWithEureka: true
    fetchRegistry: true
    serviceUrl:
      defaultZone: http://discovery:15200/eureka/
      
cas:
  encoding: UTF-8
  casServerUrlPrefix: http://cas/
  casServerLoginUrl: https://cas.gaoxiaobang.com/login
  casServerLogoutUrl: https://cas.gaoxiaobang.com/logout
  ignorePattern: (^(/mvc/goto/)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)

tenant:
  tenantId: 991