backend/config/supervisor/daphne_supervisor.conf
2022-10-31 09:20:43 +01:00

27 lines
890 B
Plaintext

[fcgi-program:ws_zierle_training]
# TCP socket used by Nginx backend upstream
socket=tcp://localhost:8002
user=www-data
# Directory where your site's project files are located
directory=/home/marc/www/backend
# Each process needs to have a separate socket file, so we use process_num
# Make sure to update "mysite.asgi" to match your project name
command=/home/marc/www/backend/env/bin/python3 -m daphne -u /run/daphne/daphne_prod%(process_num)d.sock --fd 0 --access-log - --proxy-headers config.asgi:application
# Number of processes to startup, roughly the number of CPUs you have
numprocs=2
# Give each process a unique name so they can be told apart
process_name=ws_zierle_training%(process_num)d
# Automatically start and recover processes
autostart=true
autorestart=true
# Choose where you want your log to go
stdout_logfile=/home/marc/www/logs/daphne.log
redirect_stderr=true