From cea41772fde27fbf3b7eaf15750d0e879b2e4e08 Mon Sep 17 00:00:00 2001 From: AlexV Date: Fri, 6 Jun 2025 16:47:43 +0200 Subject: [PATCH] [fix] Update templates/supervisor/daphne.j2 command Daphne should not touch the unix socket managed by supervisor, as supervisor will forward the traffic to `--fd 0` --- templates/supervisor/daphne.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/supervisor/daphne.j2 b/templates/supervisor/daphne.j2 index 448c1aee..7e5e36b7 100644 --- a/templates/supervisor/daphne.j2 +++ b/templates/supervisor/daphne.j2 @@ -2,7 +2,7 @@ user={{ www_user }} socket=unix://{{ openwisp2_path }}/daphne0.sock directory={{ openwisp2_path }} -command={{ openwisp2_path }}/env/bin/daphne --fd 0 -u {{ openwisp2_path }}/daphne%(process_num)d.sock --access-log - --websocket_timeout {{ openwisp2_daphne_websocket_timeout }} --proxy-headers openwisp2.asgi:application +command={{ openwisp2_path }}/env/bin/daphne --fd 0 --access-log - --websocket_timeout {{ openwisp2_daphne_websocket_timeout }} --proxy-headers openwisp2.asgi:application process_name=asgi%(process_num)d numprocs={{ openwisp2_daphne_processes }} autostart=true