I set all my services to be reverse proxied with Traefik. Additionally, I expose some relevant ports on the host interface, in case there is trouble with the reverse proxy.
Things were working as supposed in some versions before the last stable. What I am now experiencing is that I am not able to log in over the reverse reverse proxy.
Using the host interface on port 8084 login works.
I still have this issue using NPM as reverse proxy I can’t login but can just fine if accessing by IP address.
I tried to access the /login.html URL but it just keeps redirecting to login2.html, even in an incognito window.
I just installed deCONZ with Caddy as reverse proxy.
The arguments for deCONZ are -platform minimal --dev=/dev/conbee --http-port=8080 --https-port=0
The Caddy file is (anonymized domain, http is used for integration in FHEM)
The login uses the IP-Adress of the deCONZ-instance and fails because of not allowed Cross-Origin-Call to IP.
The cause ist this condition (host.match(/^(192.168.|10.|172.(1[6-9]|2\d|3[01]))/)||-1===host.indexOf(".de"))
in the file /usr/share/deCONZ/webapp/pwa/js/scanner.js. It prevents usage of deconz.example.de as address of the gateway.
I patched the condition to (host.match(/^(192\.168\.|10\.|172\.(1[6-9]|2\d|3[01]))/)||true)
the restarted deconz.
Then it take a few seconds then decent.exampe.de appears as address for the gateway and the login works.
Since scanner.js ist part of the Phoscon App that is not open source, I cannot fix it by myself as pull request.
But I think it should be fixed (why is explicitely the top level domain “.de” excluded). I use the instance protected behind a firewall with VPN. This should be possible.