From 28a777601981881b177b3c9b0a47f1ac9bab923f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Amorin?= Date: Wed, 24 Jun 2026 12:04:48 +0200 Subject: [PATCH 1/2] Secure Docker build and configure Gunicorn workers --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 975bdfa5e..16335a766 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,9 @@ RUN pip install -r requirements.txt COPY . /app/ -RUN SECRET_KEY=dummy-build-secret python manage.py collectstatic --noinput +RUN SECRET_KEY="$(python -c 'import secrets; print(secrets.token_urlsafe(50))')" \ + python manage.py collectstatic --noinput EXPOSE 8000 -CMD ["gunicorn", "oc_lettings_site.wsgi:application", "--bind", "0.0.0.0:8000"] \ No newline at end of file +CMD ["gunicorn", "oc_lettings_site.wsgi:application", "--bind", "0.0.0.0:8000", "--worker-class", "gthread", "--workers", "2", "--threads", "2", "--timeout", "30", "--access-logfile", "-"] From fa59402d8aefb82f91595c3cf14058cc133a928a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Amorin?= Date: Wed, 24 Jun 2026 12:05:10 +0200 Subject: [PATCH 2/2] Fix home navigation links --- lettings/templates/lettings/index.html | 2 +- profiles/templates/profiles/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lettings/templates/lettings/index.html b/lettings/templates/lettings/index.html index bbbe6478d..5934d609e 100644 --- a/lettings/templates/lettings/index.html +++ b/lettings/templates/lettings/index.html @@ -33,7 +33,7 @@

Lettings