Skip to content

Commit

Permalink
Re-enable proxy caching without Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Dec 28, 2023
1 parent 6bbc782 commit 4f18353
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .k8s/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,33 @@ config:
limit_by: ip
plugin: rate-limiting
---
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: proxy-cache-alquran-api
namespace: alquran-cloud
config:
response_code:
- 200
- 400
- 301
request_method:
- GET
- HEAD
cache_ttl: 86400
strategy: memory
memory:
dictionary_name: mamluk_proxy_cache
plugin: proxy-cache
---
# Service
apiVersion: v1
kind: Service
metadata:
name: alquran-cloud-api
namespace: alquran-cloud
annotations:
konghq.com/plugins: rate-limiting-alquran-api
konghq.com/plugins: rate-limiting-alquran-api, proxy-cache-alquran-api
spec:
ports:
- port: 80
Expand Down

0 comments on commit 4f18353

Please sign in to comment.