From 7304a0fc5def49e76f39041dd6a113ee1a298f23 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 5 Aug 2021 14:51:19 +0200 Subject: [PATCH] increase size of the buffer to fit jwt in cache key --- docker/nginx/conf.d/client.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index b65ad0e5..a33055cc 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -543,6 +543,7 @@ server { proxy_cache skynet; # use general nginx cache proxy_cache_key $uri+$skynet_jwt; # include skynet-jwt cookie (mapped to skynet_jwt) proxy_cache_valid 200 401 1m; # cache success and unauthorized responses for 1 minute + proxy_buffer_size 8k; # increase size of the buffer to fit jwt in cache key rewrite /accounts(.*) $1 break; # drop the /accounts prefix from uri proxy_pass http://10.10.10.70:3000; # hardcoded ip because accounts might not be available