- Move temp path directives into http block - Set working directory to /app/data for Blinko - Add BLINKO_DATA_PATH environment variable
39 lines
887 B
Plaintext
39 lines
887 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
logfile=/dev/stdout
|
|
logfile_maxbytes=0
|
|
pidfile=/run/supervisord.pid
|
|
|
|
[unix_http_server]
|
|
file=/run/supervisor.sock
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
|
|
|
[supervisorctl]
|
|
serverurl=unix:///run/supervisor.sock
|
|
|
|
[program:nginx]
|
|
command=/usr/sbin/nginx -c /run/nginx.conf
|
|
directory=/app/code
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
priority=10
|
|
|
|
[program:blinko]
|
|
command=/usr/local/bin/dumb-init node /app/code/dist/index.js
|
|
directory=/app/data
|
|
user=cloudron
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
priority=20
|
|
environment=NODE_ENV="production",HOME="/app/data",BLINKO_DATA_PATH="/app/data/.blinko"
|