Ok, it’s kind of my fault… I’m using apache to proxy the access to openhab. Apache has the correct SSL cert which is used for my server (a let’s encrypt one). So I proxied to the 8080 port of openhab which of course is http.
So I turned SSLProxyEngine on to proxy to the SSL Port 8443 of openhab. Now the rest api returns https, but with host “127.0.0.1” which of course won’t be accessible from external.
But if I proxy to the 8080 port via http, the rest service reports correctly my public domain. Guess I have to check the source code how the url is built…
Hmm, ok. I don’t like to make OH available directly from external. Additionally I have other websites running also with SSL, so I need the 443 port (and I don’t like to use others because of some firewalls are blocking other ports).
So I have to play around if I get it working or change the rest API to return always https links or something like that.