I have installed my first openremote Server. As I have not a log of Internet IP’s I need to change the Manager Port to 8443.
I have set the following in my docker-compose.yml.
ports:
- “80:80”
- “8443:443”
- “8883:8883”
This is a nice bug you found I guess we never tried it before. It seems to be a bug embedded in the openremote/proxy image and I could easily reproduce it. A good news is that it is very easy to fix, simply use a different proxy image instead. I’ve switched it to caddy and now the map is displaying OK. Here is a change in docker-compose.yml:
BTW, you don’t need any own certs for caddy as it generates them automatically from let’s encrypt. Moreover, $DOMAINNAME should include also the hostname as in $KEYCLACK_FRONT_URL, so it should be iotserver.securexperts.net in your example. And it should have a valid DNS entry as right now it has not:
Thanks for bringing this to our attention; the problem ultimately was in our manager and not correctly processing the X-Forwarded-Host header which contains the port as well as host, anyway. I’ve resolved this in a recent commit and in the process I’ve cleaned up some environment variable names, see the README for details:
Now it works like a charm. The full manager Frontent is working
I tried to add a Weather value like in the documentation but get allways errors like this
Failed to link attribute ‘AttributeRef{id=‘7KY8SvvT2I2WfilZqRxyDD’, name=‘weatherData’}’ to protocol: HTTP Client[https://api.openweathermap.org/data/2.5] – java.lang.ClassCastException: org.openremote.model.asset.agent.AgentLink$Default cannot be cast to org.openremote.agent.protocol.http.HttpClientAgent$HttpClientAgentLink
Could this also be linked to the Port redirection or is it somehow something wrong in my configuration?
My config falls back tfrom HTTPClientAgentLink to Default like in another Post in this forum.