I’m trying to configure remote access to my OpenHab setup through an existing domain. Instead of creating a new subdomain, eg. https://openhab.mydomain.com, I was planning to use a reverse-proxy that proxies https://mydomain.com/openhab to my actual openhab server. Unfortunately, the IOS app doesn’t appear prefix the /rest/ requests with the path portion of the Remote URL (they should be /openhab/rest/).
There are a few good reasons to support this approach:
- for people who only have a single routable IP address, it allows OpenHab to work more seamlessly with other servers/services that may be running.
- it is more secure - if there isn’t a public link to the openhab URL, one would have to guess or randomly try URL paths to stumble upon the openhab server (the path can be a random string that is much more difficult to guess than running a port scanner for additional open ports).
- it can be easier to host as you don’t need to set up a separate subdomain for the openhab server.
Has anyone else tried this?