add new
This commit is contained in:
9
vnc-viewer/root/etc/cont-init.d/setup-novnc-ingress
Normal file
9
vnc-viewer/root/etc/cont-init.d/setup-novnc-ingress
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
set -e
|
||||
|
||||
bashio::log.info 'Prepare noVNC for Home Assistant ingress'
|
||||
|
||||
host_port=$(bashio::core.port)
|
||||
ingress_url=$(bashio::addon.ingress_entry)
|
||||
|
||||
sed -i "/UI.initSetting/ s@'websockify'@'${ingress_url:1}/websockify'@; /UI.initSetting/ s/ port/ ${host_port}/" /noVNC/app/ui.js
|
||||
Reference in New Issue
Block a user