26 lines
530 B
YAML
26 lines
530 B
YAML
server:
|
|
port: 8081
|
|
spring:
|
|
cloud:
|
|
gateway:
|
|
routes:
|
|
- id: limit_route
|
|
uri: http://httpbin.org:80/get
|
|
predicates:
|
|
- After=2017-01-20T17:42:47.789-07:00[America/Denver]
|
|
filters:
|
|
- name: RequestRateLimiter
|
|
args:
|
|
key-resolver: '#{@hostAddrKeyResolver}'
|
|
redis-rate-limiter.replenishRate: 1
|
|
redis-rate-limiter.burstCapacity: 1
|
|
application:
|
|
name: gateway-limiter
|
|
redis:
|
|
host: localhost
|
|
port: 6379
|
|
database: 0
|
|
|
|
|
|
|