feat: use novnc, fix Thank you for buying timeout

This commit is contained in:
Trung Le 2022-04-09 14:50:42 +07:00
parent 9416f37698
commit 7971be297c
3 changed files with 9 additions and 6 deletions

View file

@ -2,7 +2,10 @@
# Start VNC in a background process:
x11vnc -display "$DISPLAY" -forever -shared -rfbport "${VNC_PORT:-5900}" \
-passwd "${VNC_PASSWORD:-secret}" &
-passwd "${VNC_PASSWORD:-secret}" -bg
NOVNC_HOME=/usr/share/novnc
ln -s $NOVNC_HOME/vnc_auto.html $NOVNC_HOME/index.html
websockify -D --web "$NOVNC_HOME" "$NOVNC_PORT" "localhost:$VNC_PORT" &
# Execute the given command:
exec "$@"