mirror of
https://github.com/MarcZierle/photo-log-backend.git
synced 2025-01-06 14:28:00 +00:00
27 lines
925 B
Plaintext
27 lines
925 B
Plaintext
[fcgi-program:ws_zierle_training_staging]
|
|
# TCP socket used by Nginx backend upstream
|
|
socket=tcp://localhost:8001
|
|
|
|
user=www-data
|
|
|
|
# Directory where your site's project files are located
|
|
directory=/home/marc/www-staging/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-staging/backend/env/bin/python3 -m daphne -u /run/daphne/daphne%(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_staging%(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-staging/logs/daphne.log
|
|
redirect_stderr=true
|