Update base/app/init.d/10-novnc.sh

This commit is contained in:
myve 2025-03-13 23:52:20 +00:00
commit 4858b2370e

View file

@ -19,6 +19,13 @@ sed -i "/UI.initSetting\|shared/ s/shared', .*);/shared', ${_MYVNC_VNCSHARING});
# NoVNC custom title # NoVNC custom title
sed -i "/<title>noVNC<\/title>/ s/noVNC/${MYVNC_CUSTOM_TITLE:-noVNC}/g" /usr/share/novnc/*.html sed -i "/<title>noVNC<\/title>/ s/noVNC/${MYVNC_CUSTOM_TITLE:-noVNC}/g" /usr/share/novnc/*.html
# Include domain details for websocket
if [ ${MYVNC_DOMAIN} ]
then
sed -i "/UI.initSetting\|host/ s/host', '');/host', '${MYVNC_DOMAIN}');/" /usr/share/novnc/app/ui.js
sed -i "/UI.initSetting\|port/ s/port', 0);/port', 443);/" /usr/share/novnc/app/ui.js
fi
# Apply subpath to websocket # Apply subpath to websocket
if [[ ${MYVNC_PROXYPATH} == "/" ]] if [[ ${MYVNC_PROXYPATH} == "/" ]]
then then