1
0
mirror of https://github.com/fcwu/docker-ubuntu-vnc-desktop synced 2026-08-05 16:12:41 +02:00

refactor: code restructure

1. split frontend and backend
2. simplify supervisor configuration
3. align backend log format with supervisor
4. set nginx worker to 1
5. delete static web pages
This commit is contained in:
Doro Wu
2018-03-13 21:24:45 +08:00
parent f5da5d152f
commit 99af8cd699
21 changed files with 14 additions and 292 deletions
+4 -10
View File
@@ -7,13 +7,13 @@ directory=/root
[program:nginx]
priority=10
command=nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
stdout_logfile=/var/log/nginx.log
[program:web]
priority=10
directory=/usr/local/lib/web
command=/usr/local/lib/web/run.py
stdout_logfile=/var/log/web.log
directory=/usr/local/lib/web/backend
command=/usr/local/lib/web/backend/run.py
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[group:x]
programs=xvfb,wm,lxpanel,pcmanfm,x11vnc,novnc
@@ -22,13 +22,11 @@ programs=xvfb,wm,lxpanel,pcmanfm,x11vnc,novnc
priority=10
command=/usr/local/bin/xvfb.sh
stopsignal=KILL
stdout_logfile=/var/log/xvfb.log
[program:wm]
priority=15
command=/usr/bin/openbox
environment=DISPLAY=":1",HOME="/root",USER="root"
stdout_logfile=/var/log/openbox.log
[program:lxpanel]
priority=15
@@ -36,7 +34,6 @@ directory=%HOME%
command=/usr/bin/lxpanel --profile LXDE
user=%USER%
environment=DISPLAY=":1",HOME="%HOME%",USER="%USER%"
stdout_logfile=/var/log/lxpanel.log
[program:pcmanfm]
priority=15
@@ -44,16 +41,13 @@ directory=%HOME%
command=/usr/bin/pcmanfm --desktop --profile LXDE
user=%USER%
environment=DISPLAY=":1",HOME="%HOME%",USER="%USER%"
stdout_logfile=/var/log/pcmanfm.log
[program:x11vnc]
priority=20
command=x11vnc -display :1 -xkb -forever -shared -repeat
stdout_logfile=/var/log/x11vnc.log
[program:novnc]
priority=25
directory=/usr/local/lib/novnc/
command=/usr/local/lib/novnc/utils/launch.sh --listen 6081
stdout_logfile=/var/log/novnc.log
stopasgroup=true