From 54fb7dbb711f8df5f915e484e8743acd27d8ee54 Mon Sep 17 00:00:00 2001
From: Micah Anderson <micah@riseup.net>
Date: Fri, 25 Oct 2024 11:02:40 -0400
Subject: [PATCH] Force nginx proxy_cache_use_stale to stay at default value.
Upstream float changes the default float `proxy.conf` in
https://git.autistici.org/ai3/float/-/commit/615097155bac993f526394c6f1ea3b3e2ec5d305
that causes 404 errors reaching menshen. By simply adding the default value back
to the menshen specific virtual host block, the problem is resolved, without
impacting the rest of the float system.
This upstream commit is not yet in lilypad, but when it comes, this will be
necessary. Having this in place before does nothing, as this is the default
nginx value.
Fixes: https://0xacab.org/leap/menshen/-/issues/60
---
config/roles/menshen-frontend/tasks/main.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/config/roles/menshen-frontend/tasks/main.yml b/config/roles/menshen-frontend/tasks/main.yml
index 057e617c..2eb4271f 100644
--- a/config/roles/menshen-frontend/tasks/main.yml
+++ b/config/roles/menshen-frontend/tasks/main.yml
@@ -46,6 +46,7 @@
include /etc/nginx/snippets/block.conf;
include /etc/nginx/snippets/proxy.conf;
proxy_pass http://be_api_9001_menshen/3/cert;
+ proxy_cache_use_stale off;
proxy_method GET;
}
## desktop app uses POST
--
GitLab