diff --git a/entrypoint.sh b/entrypoint.sh index a505961..4c70052 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -16,5 +16,6 @@ fi # echo "NoVNC server started on port $NOVNC_PORT" # EXEC=$@ # exec "$@" +export LOCALFBPORT=$((5900 + DISPLAY_NUMBER)) export VGLRUN=vglrun chown -R slic3r:slic3r /home/slic3r/ /configs/ /prints/ /dev/stdout && exec gosu slic3r supervisord # -e TRACE diff --git a/supervisord.conf b/supervisord.conf index 498fbd5..1695d56 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -10,7 +10,7 @@ redirect_stderr=true [program:novnc] priority=0 -command=websockify --web=/usr/share/novnc/ %(ENV_NOVNC_PORT)s localhost:5901 +command=websockify --web=/usr/share/novnc/ %(ENV_NOVNC_PORT)s localhost:%(ENV_LOCALFBPORT)s autorestart=true redirect_stderr=true