From 068137d15adc967fc8c25eb348bce88757e95e0e Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 19 Jan 2022 01:34:38 +0100 Subject: [PATCH] [helloworld] Clean uWSGI configuration Signed-off-by: Yohann D'ANELLO --- .../templates/uwsgi/apps-available/django-printer.ini.j2 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/roles/printer/templates/uwsgi/apps-available/django-printer.ini.j2 b/roles/printer/templates/uwsgi/apps-available/django-printer.ini.j2 index d2a0e98d..f6a05853 100644 --- a/roles/printer/templates/uwsgi/apps-available/django-printer.ini.j2 +++ b/roles/printer/templates/uwsgi/apps-available/django-printer.ini.j2 @@ -5,18 +5,13 @@ uid = www-data gid = www-data # Django-related settings # the base directory (full path) -chdir = {{ project_path }} -wsgi-file = {{ module_path }}/wsgi.py +module = printer.wsgi:application plugin = python3 # process-related settings # master master = true # maximum number of worker processes processes = 10 -# the socket (use the full path to be safe) -socket = /var/run/uwsgi/app/django-printer/django-printer.sock -# ... with appropriate permissions - may be needed -chmod-socket = 664 # clear environment on exit vacuum = true # Touch reload