gateway.yml 1.8 KB
server:
  port: 15300

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

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

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

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


eureka:
  instance:
    hostname: gateway
  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
  ignorePattern: (^(/mvc/goto/)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)
---

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

ribbon:
  eureka:
    enabled: false

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