Fix noVNC studio: add index.html redirect to vnc.html

Websockify serves directory listing at / by default. Added an
index.html with meta-refresh to vnc.html?autoconnect=true&resize=scale.
Removed unnecessary redirect middleware.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-24 02:02:58 +00:00
parent 9080fdc86b
commit ad74b2b55f
1 changed files with 6 additions and 0 deletions

View File

@ -63,6 +63,12 @@ su - designer -c "export DISPLAY=:1 && dbus-launch openbox-session" &
sleep 1
su - designer -c "export DISPLAY=:1 && scribus" &
# Create index.html redirect for noVNC
cat > /usr/share/novnc/index.html <<'INDEXEOF'
<!DOCTYPE html>
<html><head><meta http-equiv="refresh" content="0;url=vnc.html?autoconnect=true&resize=scale"></head></html>
INDEXEOF
# Start noVNC (websockify bridge)
/usr/share/novnc/utils/novnc_proxy \
--vnc localhost:5901 \