version: bootstrap
eureka:
  client:
    fetchRegistry: true
    register-with-eureka: true
    service-url:
      defaultZone: http://eurekaserver:7001/eureka
  instance:
    lease-expiration-duration-in-seconds: 10
    lease-renewal-interval-in-seconds: 5
    prefer-ip-address: true
server:
  port: 9527
spring:
  application:
    name: subway-gateway
  cloud:
    gateway:
      discovery:
        locator:
          enabled: true
      routes:
      - id: subwayweb
        predicates:
        - Path=/diyudemo/**
        uri: lb://SUBWAY-WEB
      - id: subwaykafka
        predicates:
        - Path=/subway-kafka/**
        uri: lb://SUBWAY-KAFKA
      - id: subwayceph
        predicates:
        uri: lb://SUBWAY-CEPH
        - Path=/subway-ceph/**