[fcgi-program:asgi] # TCP socket used by Nginx backend upstream # 与nginx端口保持一致 socket=tcp://localhost:9009
# Directory where your site's project files are located # 项目路径 directory=/var/www/test/
# 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 # 启动daphne的命令 command=/root/anaconda3/envs/APVENV/bin/daphne -u /run/daphne/daphne%(process_num)d.sock --fd 0 --access-log - --proxy-headers aupool.asgi:application
# Number of processes to startup, roughly the number of CPUs you have numprocs=4
# Give each process a unique name so they can be told apart process_name=asgi%(process_num)d
# Automatically start and recover processes autostart=true autorestart=true
# Choose where you want your log to go # 日志所在路径 stdout_logfile=/var/www/asgi.log redirect_stderr=true