From 45559f8410a351f28c7e588e792d9356cbc531bd Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Thu, 22 Aug 2024 11:33:16 +0530 Subject: [PATCH 1/2] new nginx settings --- deployment/terraform/strings.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deployment/terraform/strings.go b/deployment/terraform/strings.go index c242ed8c6..40267e063 100644 --- a/deployment/terraform/strings.go +++ b/deployment/terraform/strings.go @@ -195,9 +195,11 @@ proxy_pass http://backend; const nginxCacheCommonConfig = ` proxy_cache mattermost_cache; proxy_cache_revalidate on; -proxy_cache_min_uses 2; -proxy_cache_use_stale timeout; +proxy_cache_min_uses 1; +proxy_cache_use_stale updating; proxy_cache_lock on; +proxy_cache_lock_timeout 2s; +proxy_cache_background_update on; ` const nginxSiteConfigTmpl = ` From a5ca64786362da916d927036cb532126390d3535 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Mon, 26 Aug 2024 14:22:05 +0530 Subject: [PATCH 2/2] adjustments --- deployment/terraform/strings.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deployment/terraform/strings.go b/deployment/terraform/strings.go index 40267e063..2919d83e9 100644 --- a/deployment/terraform/strings.go +++ b/deployment/terraform/strings.go @@ -196,10 +196,9 @@ const nginxCacheCommonConfig = ` proxy_cache mattermost_cache; proxy_cache_revalidate on; proxy_cache_min_uses 1; -proxy_cache_use_stale updating; +proxy_cache_use_stale timeout; proxy_cache_lock on; proxy_cache_lock_timeout 2s; -proxy_cache_background_update on; ` const nginxSiteConfigTmpl = `