Spaces:
Paused
Paused
Create supervisor.conf
Browse files- supervisor.conf +80 -0
supervisor.conf
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[supervisord]
|
| 2 |
+
logfile=/var/log/supervisor/supervisord.log
|
| 3 |
+
logfile_maxbytes=10MB
|
| 4 |
+
logfile_backups=10
|
| 5 |
+
loglevel=info
|
| 6 |
+
pidfile=/var/run/supervisor/supervisord.pid
|
| 7 |
+
nodaemon=true
|
| 8 |
+
childlogdir=/var/log/supervisor
|
| 9 |
+
|
| 10 |
+
[inet_http_server]
|
| 11 |
+
port=127.0.0.1:9005
|
| 12 |
+
|
| 13 |
+
[rpcinterface:supervisor]
|
| 14 |
+
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
|
| 15 |
+
|
| 16 |
+
[supervisorctl]
|
| 17 |
+
serverurl=http://127.0.0.1:9005
|
| 18 |
+
|
| 19 |
+
[program:xvfb]
|
| 20 |
+
priority=0
|
| 21 |
+
environment=START_XVFB=true
|
| 22 |
+
command=/opt/bin/start-xvfb.sh
|
| 23 |
+
autostart=true
|
| 24 |
+
autorestart=true
|
| 25 |
+
|
| 26 |
+
;Logs
|
| 27 |
+
redirect_stderr=false
|
| 28 |
+
stdout_logfile=/var/log/supervisor/xvfb-stdout.log
|
| 29 |
+
stderr_logfile=/var/log/supervisor/xvfb-stderr.log
|
| 30 |
+
stdout_logfile_maxbytes=50MB
|
| 31 |
+
stderr_logfile_maxbytes=50MB
|
| 32 |
+
stdout_logfile_backups=5
|
| 33 |
+
stderr_logfile_backups=5
|
| 34 |
+
stdout_capture_maxbytes=50MB
|
| 35 |
+
stderr_capture_maxbytes=50MB
|
| 36 |
+
|
| 37 |
+
[program:go-bingai-pass]
|
| 38 |
+
command=/app/go-bingai-pass
|
| 39 |
+
environment=PORT=8080
|
| 40 |
+
directory=/app
|
| 41 |
+
stdout_logfile=/dev/stdout
|
| 42 |
+
stderr_logfile=/dev/stderr
|
| 43 |
+
autostart=true
|
| 44 |
+
autorestart=true
|
| 45 |
+
startsecs=5
|
| 46 |
+
stopwaitsecs = 5
|
| 47 |
+
killasgroup=true
|
| 48 |
+
|
| 49 |
+
[program:go-proxy-bingai]
|
| 50 |
+
command=/app/go-proxy-bingai
|
| 51 |
+
directory=/app
|
| 52 |
+
stdout_logfile=/dev/stdout
|
| 53 |
+
stderr_logfile=/dev/stderr
|
| 54 |
+
autostart=true
|
| 55 |
+
autorestart=true
|
| 56 |
+
startsecs=5
|
| 57 |
+
stopwaitsecs = 5
|
| 58 |
+
killasgroup=true
|
| 59 |
+
|
| 60 |
+
[program:proxy]
|
| 61 |
+
command=/usr/local/bin/xray run -c /app/config.json
|
| 62 |
+
directory=/app
|
| 63 |
+
stdout_logfile=/dev/stdout
|
| 64 |
+
stderr_logfile=/dev/stderr
|
| 65 |
+
autostart=true
|
| 66 |
+
autorestart=true
|
| 67 |
+
startsecs=5
|
| 68 |
+
stopwaitsecs = 5
|
| 69 |
+
killasgroup=true
|
| 70 |
+
|
| 71 |
+
[program:cloudflared]
|
| 72 |
+
command=/app/cloudflared tunnel --no-autoupdate run --token %(ENV_CF_ZERO_TRUST_TOKEN)s
|
| 73 |
+
directory=/app
|
| 74 |
+
stdout_logfile=/dev/stdout
|
| 75 |
+
stderr_logfile=/dev/stderr
|
| 76 |
+
autostart=true
|
| 77 |
+
autorestart=true
|
| 78 |
+
startsecs=5
|
| 79 |
+
stopwaitsecs = 5
|
| 80 |
+
killasgroup=true
|