65 lines
1.4 KiB
Plaintext
65 lines
1.4 KiB
Plaintext
; Copyright (c) 2021 Battelle Energy Alliance, LLC. All rights reserved.
|
|
|
|
[unix_http_server]
|
|
file=/tmp/supervisor.sock ; (the path to the socket file)
|
|
chmod=0700
|
|
|
|
[supervisord]
|
|
nodaemon=true
|
|
logfile=/dev/null
|
|
logfile_maxbytes=0
|
|
pidfile=/tmp/supervisord.pid
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
|
|
|
|
[supervisorctl]
|
|
serverurl=unix:///tmp/supervisor.sock
|
|
|
|
[program:nginx]
|
|
command=/usr/sbin/nginx
|
|
startsecs=10
|
|
startretries=2000000000
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
redirect_stderr=true
|
|
|
|
[program:logaccess]
|
|
command=/usr/bin/tail -F /var/log/nginx/access.log
|
|
user=%(ENV_PUSER)s
|
|
startsecs=10
|
|
startretries=2000000000
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/null
|
|
stdout_logfile_maxbytes=0
|
|
redirect_stderr=false
|
|
|
|
[program:logerrors]
|
|
command=/usr/bin/tail -F /var/log/nginx/error.log
|
|
user=%(ENV_PUSER)s
|
|
startsecs=10
|
|
startretries=2000000000
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/null
|
|
stdout_logfile_maxbytes=0
|
|
redirect_stderr=false
|
|
|
|
[program:stunnel]
|
|
command=/usr/bin/stunnel /etc/stunnel/stunnel.conf
|
|
startsecs=10
|
|
startretries=2000000000
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
redirect_stderr=true
|
|
autostart=%(ENV_NGINX_LDAP_TLS_STUNNEL)s
|