I decided to install openHAB 3.1.0 on an old Rpi 2B+ I had in stock a few day ago (Mostly for the fun of setting it up).
I was able to install openHAB on a Raspbian OS lite, everything work properly, I am able to access the openHAB UI with my browser as long as I am on the local network.
The next step was to install nginx 1.18.0 on the RPi to access openHAB when I’m outside of the local network, and that were I am stuck at.
I did setup a domain name, that go through Cloudflare, and then a DynDNS-like service. That seems to work, as I am able to SSH into the RPi from outside.
I then install nginx, and did all the setup to connect to openHAB through https, using self-signed certificate.
And there is the problem : I can’t manage to get access to the UI.
When I type my domain name in the URL bar, I am prompted for the Username/Password by nginx, and once I am logged into nginx, I am asked by openHAB for an other Username/Password. I have no idea what this login could be, I tried all the password I could think of (openHAB admin password, nginx password, …).
I did some research, but from what I get from the documentation and forum thread, there is no password for openHAB UI (exept for the Administrator session).
I was not able to find any record of the same problem, so I am pretty sure I missed something really obvious somewhere.
So questions are : What is this Login/Password ? Why it is even asked ? The problem come from my openHAB setup, or from the nginx setup ?
I used this page to setup nginx, as it is the first time I am working with this kind of service :
This is a screenshot of the login windows I am stuck at.
(There is only this windows, on a otherwise black page)
I hope someone will have an idea and help me, because I really want to know where I did something wrong.
I will post the solution here anyway if I come across one.
Thank you for reading !