From d87a96d3abef5176c0f58b004ad58be02f4985ed Mon Sep 17 00:00:00 2001 From: augustus Date: Fri, 13 Mar 2026 14:47:04 +0300 Subject: [PATCH] Updated gateway --- kilimo-gateway-localhost.yml | 15 +++++++++++++-- kilimo-gateway-production.yml | 15 +++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) 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