From ef32df0300b94d16f1bd3e9647de5a5275d13ba3 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Fri, 20 Feb 2026 15:41:41 +1100 Subject: [PATCH] Improve uWSGI config --- deploy/uwsgi.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/uwsgi.ini b/deploy/uwsgi.ini index 9ceaecd7..f0f9e836 100644 --- a/deploy/uwsgi.ini +++ b/deploy/uwsgi.ini @@ -1,5 +1,6 @@ [uwsgi] strict = true # Fail if unknown config parameter found. +need-app = true # Fail to start if application cannot load plugins = python3 chdir = {{ project_dir }} home = {{ virtualenv }} @@ -10,9 +11,10 @@ processes = 3 harakiri = 30 max-requests = 5000 vacuum = true +procname-prefix-spaced = {{ site_name }} # For Sentry, see https://docs.sentry.io/clients/python/advanced/#a-note-on-uwsgi. enable-threads = true -log-prefix = {{ site_name }} +log-encoder = format {{ site_name }} ${msgnl} # Enable uWSGI stats server for use with uwsgitop. # Run with: `sudo -u www-data uwsgitop /run/{{ site_name }}/django_uwsgi_stats.socket`