spring:
cloud:
gateway:
routes:
- id: header_route
uri: lb://consumer
filters:
- name: GpDefine
args:
name: Gp_mic
# - name: Retry
# args:
# retries: 3
# status: 500
# - name: RequestRateLimiter
# args:
# denyEmptyKey: true
# emptyKeyStatus: SERVICE_UNAVAILABLE
# keyResolver: '#{@ipAddressKeyResolver}'
# redis-rate-limiter.replenishRate: 1
# redis-rate-limiter.burstCapacity: 2
# - AddRequestParameter=foo, bar
# - AddResponseHeader=X-Response-Foo, Bar
# - name: RequestRateLimiter
# args:
# redis-rate-limiter.replenishRate: 1
# redis-rate-limiter.burstCapacity: 10
predicates:
- Path=/say/**,/blue/{segment}
discovery:
locator:
enabled: false
lower-case-service-id: false
nacos:
discovery:
server-addr: http://127.0.0.1:8848
redis:
host: localhost
port: 6379
application:
name: gateway
# - Method=GET,POST
# - Host=**.jesse.com:8088
# - Cookie=chocolate, mic
# - Header=X-Request-Id, \d+
# - After=2020-06-01T24:00:00.000+08:00[Asia/Shanghai]
server:
port: 8088
management:
endpoint:
gateway:
enabled: true
endpoints:
web:
exposure:
include: "*"