File size: 1,297 Bytes
056ba48
 
 
 
670f71d
056ba48
 
 
 
 
 
 
ce0524d
056ba48
 
 
 
ce0524d
 
 
056ba48
 
 
 
 
 
 
ce0524d
056ba48
 
 
 
 
 
 
 
 
 
 
 
 
ce0524d
 
 
056ba48
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[supervisord]
nodaemon=true
logfile=/dev/stdout
logfile_maxbytes=0
loglevel=debug

[program:xvfb]
command=Xvfb :99 -screen 0 %(ENV_RESOLUTION)s -ac +extension GLX +render -noreset
autorestart=true
priority=100

[program:vnc_setup]
command=bash -c "mkdir -p ~/.vnc && echo '%(ENV_VNC_PASSWORD)s' | vncpasswd -f > ~/.vnc/passwd && chmod 600 ~/.vnc/passwd"
autorestart=false
priority=150

[program:x11vnc]
; ✅ Use same passwd created by vnc_setup (in /home/user/.vnc/passwd)
; ✅ Write logs to ~/.vnc/x11vnc.log instead of /var/log (avoids permission issues)
command=bash -c "sleep 5 && DISPLAY=:99 x11vnc -display :99 -forever -shared -rfbauth ~/.vnc/passwd -rfbport 5901 -o ~/.vnc/x11vnc.log"
autorestart=true
priority=200
startretries=10
startsecs=10
depends_on=vnc_setup,xvfb

[program:x11vnc_log]
command=bash -c "tail -f ~/.vnc/x11vnc.log"
autorestart=true
priority=250
depends_on=x11vnc

[program:novnc]
command=bash -c "sleep 5 && cd /opt/novnc && ./utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:6080 --web /opt/novnc"
autorestart=true
priority=300
startretries=5
startsecs=3
depends_on=x11vnc

[program:webui]
command=python webui.py --ip 0.0.0.0 --port 7860
; ✅ Fix wrong directory (/app -> /web-ui)
directory=/web-ui
autorestart=true
priority=400
startretries=3
startsecs=3