From 4f1835307b63ceeb09c5cc45a96b1d0b94ca7952 Mon Sep 17 00:00:00 2001 From: Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram Date: Thu, 28 Dec 2023 21:45:31 +0400 Subject: [PATCH] Re-enable proxy caching without Redis --- .k8s/manifest.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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