From 5ea4a8763c7e36f509d785af9afc36a17381fbe2 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sat, 19 Aug 2023 10:20:22 +1000 Subject: [PATCH] temporarily fix signed get requests failing Various issues have been raised regarding requests that seem to be dropped. The real fix for this in #2717 - "Stop making HTTP requests in views" This commit is a quick fix in some circumstances - particularly #2844 - signed GET requests failing in production. It adds an extra thread to Gunicorn to make the default configuration multi-threaded. This will now match the multi-threaded nature of the development environment, which is why we have not been able to replicate these errors in dev. --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index bdf81b77b..39081acbf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,7 +47,7 @@ services: web: build: . env_file: .env - command: gunicorn bookwyrm.wsgi:application --bind 0.0.0.0:8000 + command: gunicorn bookwyrm.wsgi:application --threads=2 --bind 0.0.0.0:8000 logging: *default-logging volumes: - .:/app