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:
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?
Edit:
If I inspect the source of the BasicUI frame that is supposed to contain the Webview, these lines stick out to me:
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?
I’m pretty sure that webviews outside your lan had never worked. The only way it can work is if you use an external url door the webviews (i.e reverse proxy Grafana too and use the external url). If you can’t bring it up using https://mydyndns.com/blah/blah/blah it won’t work.
Thanks for the reply. Glad to know I’m not just overlooking something. Clearly I’m not experienced with using iframes or webviews because that probably would have been obvious!
I will probably settle for the static images. Thanks!
Yes, I had to reference my external DNS name for the graphs to be visible outside. Makes sense. I just use the external url both locally and externally. It loads them fine.