After successfully installing an nginx reverse proxy in my home network, I managed to set up everything for accessing my already running openHAB instance from the internet.
The subdomain openHAB is running on is protected by .htaccess username and password, directly in the nginx settings.
From any Browser I can now access https://openhab.my-domain.de, enter my credentials and see and control my sitemap without any problems. This works on my Desktop PC and my Android Phone both with Firefox and Chrome browsers.
In the Android App I can also set https://openhab.my-domain.de as the “Remote Server URL” and supply my Username and Password. This also works, it is connecting to my openHAB installation via the remote URL. I can see the sitemap as usual.
But if I try to change a switch for example, which should turn on the light, nothing happens in my home. The switch Item in the sitemap shows the ON state, but it does not turn on anything. In the openhab events.log nothing is received. And as soon as I refresh the sitemap on my smartphone in the App (by pulling down) the switch state shows OFF again.
If I turn on the light via the local URL on the Desktop PC in my browser, it works normally and the change is instantly visible in the openHAB App connected to the remote URL.
If I then try to turn it off from the App, it’s the same problem.
Have I missed something obvious in some config options or could this potentially be a bug?
Thanks for helping!