You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

122 lines
2.5 KiB

##
##uri: lb://service-consumer
## predicates:
## - Path= /consumer/**
## filters:
## - StripPrefix=1
server:
port: 9001
#spring:
# cloud:
# gateway:
#
# discovery:
# locator:
# enabled: true
#
# # lower-case-service-id: true
# routes:
# - id: route-user
# uri: lb://entry-user-server
# predicates:
# - Path=/ac/**
# filters:
# - StripPrefix=0
#
# consul:
# host: 192.168.1.56
# port: 8500
# discovery:
# service-name: ${spring.application.name}-server
#
# application:
# name: entry-gateway
#server:
spring:
application:
name: entry-gateway
cloud:
consul:
host: 127.0.0.1
port: 8500
discovery:
service-name: ${spring.application.name}-server
prefer-ip-address: true
ip-address: 127.0.0.1
gateway:
routes:
- id: route-user
uri: lb://entry-user-server
predicates:
- Path=/ac/**
filters:
- StripPrefix=1
- id: route-biz
uri: lb://entry-biz-server
predicates:
- Path=/biz/**
filters:
- StripPrefix=1
- id: route-data
uri: lb://entry-data-server
predicates:
- Path=/data/**
filters:
- StripPrefix=1
- id: route-kettle
uri: lb://entry-kettle-server
predicates:
- Path=/kettle/**
filters:
- StripPrefix=1
- id: route-msg
uri: lb://entry-msg-server
predicates:
- Path=/msg/**
filters:
- StripPrefix=1
- id: route-ad
uri: lb://entry-ad-server
predicates:
- Path=/ad/**
filters:
- StripPrefix=1
- id: route-log
uri: lb://entry-log-server
predicates:
- Path=/log/**
filters:
- StripPrefix=1
- id: route-temp
uri: lb://iot-temperature-server
predicates:
- Path=/temperature/**
filters:
- StripPrefix=1
# - id: route-html
# uri: http://192.168.1.106:8848
# predicates:
# - Path=/html/**
# filters:
# - StripPrefix=0
# - id: route-index
# uri: http://192.168.1.101:8080
# predicates:
# - Path=/**
# filters:
# - StripPrefix=0
discovery:
locator:
enabled: true