I can’t seem to get the Webview working outside of my LAN. Image works fine, but the Webview just fails to load and I get an empty iframe in BasicUI (in Chrome). Here is the relevant code:
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" CONTENT="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="charts.css" /> </head> <div class="container"> <iframe src="http://192.168.1.2:3000/d/Xlu8IxNik/test?orgId=1&from=now-24h&to=now&panelId=4"></iframe> </div> </br> </html>
Webview height=33 url="http://192.168.1.8:8080/static/chartsDay.html"
Is this because I am using a reverse proxy? How can I get the Webview elements to load outside my LAN? Note that, even inside my LAN, using my FQDN to connect to OpenHAB does not load the Webview. This points to something wrong with the reverse proxy, I guess? How can I get this working?
If I inspect the source of the BasicUI frame that is supposed to contain the Webview, these lines stick out to me:
........ <html class=" ui-layout-condensed ui-icons-enabled "> <div class="mdl-form__row mdl-form__row--height-auto mdl-cell mdl-cell--12-col "> <div class="mdl-form__control mdl-form__webview" data-control-type="webview" data-widget-id="020300" > <iframe src="http://192.168.1.8:8080/static/chartsDay.html" height="36"></iframe> </div> </div>
Does the Webview simply “pass on” the link to the html file, without loading any of the resources that html file calls on? (Please excuse my imprecise terminology).
If the Webview is just passing a link to the html file, I can’t see how anyone has gotten this working without putting a FQDN in their Webview, and then exposing Grafana to the internet as well (and then changing the URLs in their html files to contain FQDNs as well).
Has anyone gotten the Webview working with their Openhab behind a reverse proxy?