From dc4c50efc66e895b4e83b04e01dc34599a039095 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 11 Jan 2023 13:35:55 +0000 Subject: [PATCH] Update proxy cache time for list API --- nginx-proxy-docker/nginx.conf | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/nginx-proxy-docker/nginx.conf b/nginx-proxy-docker/nginx.conf index d09000f..bf816f5 100644 --- a/nginx-proxy-docker/nginx.conf +++ b/nginx-proxy-docker/nginx.conf @@ -35,10 +35,17 @@ http { } location /api/ { - proxy_pass http://localhost:8460; - proxy_cache_key $scheme://$host$uri$is_args$query_string; - proxy_ignore_headers Cache-Control; - proxy_cache_valid 200 1m; + proxy_pass http://localhost:8460; + proxy_cache_key $scheme://$host$uri$is_args$query_string; + proxy_ignore_headers Cache-Control; + proxy_cache_valid 200 1m; } + + location /api/v1/list/ { + proxy_pass http://localhost:8460; + proxy_cache_key $scheme://$host$uri$is_args$query_string; + proxy_ignore_headers Cache-Control; + proxy_cache_valid 200 1440m; + } } }