diff --git a/.k8s/manifest.yml b/.k8s/manifest.yml index 391a87a..7d4cf54 100644 --- a/.k8s/manifest.yml +++ b/.k8s/manifest.yml @@ -64,6 +64,25 @@ 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 @@ -71,7 +90,7 @@ 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