Files
mtusi2026lab7/infra/supervisord.conf
T

33 lines
787 B
Plaintext

[supervisord]
nodaemon=true
user=appuser
logfile=/tmp/supervisord.log
pidfile=/tmp/supervisord.pid
[program:api]
command=python -m src.app.secrets_bootstrap api -- uvicorn src.app.main:app --host 127.0.0.1 --port 8080 --workers 1 --timeout-graceful-shutdown 5 --no-server-header --proxy-headers --forwarded-allow-ips=127.0.0.1
directory=/app
user=appuser
autostart=true
autorestart=true
startsecs=5
stopasgroup=true
killasgroup=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:nginx]
command=/usr/sbin/nginx -g "daemon off;"
user=appuser
autostart=true
autorestart=true
startsecs=1
stopasgroup=true
killasgroup=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0