diff --git a/kilimo-gateway-localhost.yml b/kilimo-gateway-localhost.yml index 02c5464..d154821 100644 --- a/kilimo-gateway-localhost.yml +++ b/kilimo-gateway-localhost.yml @@ -12,10 +12,21 @@ spring: - Path=/core/** filters: - RewritePath=/core/(?.*), /$\{segment} - + - name: AuthFilter + - name: RequestRateLimiter + args: + redis-rate-limiter.replenishRate: 10 + redis-rate-limiter.burstCapacity: 20 + key-resolver: "#{@userKeyResolver}" - id: kilimo_assistant_service uri: http://localhost:9082 predicates: - Path=/assistant/** filters: - - RewritePath=/assistant/(?.*), /$\{segment} \ No newline at end of file + - RewritePath=/assistant/(?.*), /$\{segment} + - name: AuthFilter + - name: RequestRateLimiter + args: + redis-rate-limiter.replenishRate: 10 + redis-rate-limiter.burstCapacity: 20 + key-resolver: "#{@userKeyResolver}" \ No newline at end of file diff --git a/kilimo-gateway-production.yml b/kilimo-gateway-production.yml index 02c5464..d154821 100644 --- a/kilimo-gateway-production.yml +++ b/kilimo-gateway-production.yml @@ -12,10 +12,21 @@ spring: - Path=/core/** filters: - RewritePath=/core/(?.*), /$\{segment} - + - name: AuthFilter + - name: RequestRateLimiter + args: + redis-rate-limiter.replenishRate: 10 + redis-rate-limiter.burstCapacity: 20 + key-resolver: "#{@userKeyResolver}" - id: kilimo_assistant_service uri: http://localhost:9082 predicates: - Path=/assistant/** filters: - - RewritePath=/assistant/(?.*), /$\{segment} \ No newline at end of file + - RewritePath=/assistant/(?.*), /$\{segment} + - name: AuthFilter + - name: RequestRateLimiter + args: + redis-rate-limiter.replenishRate: 10 + redis-rate-limiter.burstCapacity: 20 + key-resolver: "#{@userKeyResolver}" \ No newline at end of file