mirror of
https://github.com/helfrichmichael/prusaslicer-novnc.git
synced 2024-08-30 18:32:27 +00:00
fix: add support for no security and full password sec.
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
This commit is contained in:
parent
6653680cd7
commit
7fde29ba73
@ -10,12 +10,10 @@ if [ -n "$VNC_PASSWORD" ]; then
|
||||
mkdir -p /root/.vnc
|
||||
echo "$VNC_PASSWORD" | vncpasswd -f > /root/.vnc/passwd
|
||||
chmod 0600 /root/.vnc/passwd
|
||||
export VNC_SEC=
|
||||
else
|
||||
export VNC_SEC="-securitytypes TLSNone,X509None,None"
|
||||
fi
|
||||
# vncserver "$DISPLAY" -securitytypes TLSNone,X509None,None -depth 24 -geometry "$VNC_RESOLUTION"
|
||||
# websockify -D --web=/usr/share/novnc/ "$NOVNC_PORT" localhost:$((5900 + DISPLAY_NUMBER))
|
||||
# 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
|
||||
|
@ -4,7 +4,7 @@ pidfile=/tmp/supervisord.pid
|
||||
|
||||
[program:vnc]
|
||||
priority=0
|
||||
command=/opt/TurboVNC/bin/vncserver %(ENV_DISPLAY)s -fg -securitytypes TLSNone,X509None,None -depth 24 -geometry %(ENV_VNC_RESOLUTION)s
|
||||
command=/opt/TurboVNC/bin/vncserver %(ENV_DISPLAY)s -fg %(ENV_VNC_SEC)s -depth 24 -geometry %(ENV_VNC_RESOLUTION)s
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user