Skip to content

Commit

Permalink
Remove redis for proxy caching and rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Dec 27, 2023
1 parent e03e665 commit deb223d
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions .k8s/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,42 +60,18 @@ metadata:
namespace: alquran-cloud
config:
second: 20
policy: redis
redis_host: redis-ratelimit-master
redis_port: 6379
policy: cluster
limit_by: ip
plugin: rate-limiting
---
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: proxy-cache-redis-alquran-api
namespace: alquran-cloud
config:
response_code:
- 200
- 400
- 301
request_method:
- GET
- HEAD
content_type:
- application/json
cache_ttl: 86400
cache_control: false
storage_ttl: 86400
redis_port: 6379
redis_host: redis-cache-alquran-master
plugin: proxy-cache-redis
---
# Service
apiVersion: v1
kind: Service
metadata:
name: alquran-cloud-api
namespace: alquran-cloud
annotations:
konghq.com/plugins: rate-limiting-alquran-api, proxy-cache-redis-alquran-api
konghq.com/plugins: rate-limiting-alquran-api
spec:
ports:
- port: 80
Expand Down

0 comments on commit deb223d

Please sign in to comment.