Skip to content

Commit

Permalink
Add back 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 c3b4b6f commit dc5f51c
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .k8s/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ metadata:
name: aladhan-com-api
namespace: aladhan-com
annotations:
konghq.com/plugins: rate-limiting-aladhan-api
konghq.com/plugins: rate-limiting-aladhan-api, proxy-cache-aladhan-api
spec:
ports:
- port: 80
Expand Down Expand Up @@ -164,6 +164,30 @@ plugin: rate-limiting
---
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: proxy-cache-aladhan-api
namespace: aladhan-com
config:
response_code:
- 200
- 400
- 301
request_method:
- GET
- HEAD
content_type:
- application/json
- text/html; charset=UTF-8
- text/hml
cache_control: false
cache_ttl: 3600
strategy: memory
memory:
dictionary_name: mamluk_proxy_cache
plugin: proxy-cache
---
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: bot-detection-aladhan-api
namespace: aladhan-com
Expand Down

0 comments on commit dc5f51c

Please sign in to comment.