43 lines
976 B
Plaintext
43 lines
976 B
Plaintext
# Agenten Plattform
|
|
#
|
|
# (c) 2024 Magnus Bender
|
|
# Institute of Humanities-Centered Artificial Intelligence (CHAI)
|
|
# Universitaet Hamburg
|
|
# https://www.chai.uni-hamburg.de/~bender
|
|
#
|
|
# source code released under the terms of GNU Public License Version 3
|
|
# https://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
logfile=/dev/stdout
|
|
logfile_maxbytes = 0
|
|
|
|
[program:setup]
|
|
command=/bin/sh -c "chown user:user -R /ums-agenten"
|
|
user=root
|
|
autostart=true
|
|
autorestart=false
|
|
|
|
[fcgi-program:uvicorn]
|
|
socket=unix:///tmp/uvicorn.sock
|
|
environment=SERVE=true
|
|
command=/usr/local/bin/uvicorn ums.management.main:app --uds /tmp/uvicorn.sock --proxy-headers
|
|
numprocs=4
|
|
process_name=uvicorn-%(process_num)d
|
|
user=user
|
|
autostart=true
|
|
autorestart=true
|
|
priority=10
|
|
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
|
|
[program:nginx]
|
|
command=/usr/sbin/nginx -g 'daemon off;'
|
|
autostart=true
|
|
autorestart=true
|
|
priority=20 |