mirror of
https://git.myvelabs.com/novnc/alpine.git
synced 2025-12-17 21:26:21 +00:00
Update base/app/init.d/10-novnc.sh
This commit is contained in:
parent
a25dc51e1c
commit
4858b2370e
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue