I have zyxel router (keenetic ultra II) with build in DNS servise - KeenDNS which give you remote access to the router with third-level domains name and any local device with fourth level domain name. Connection is https. So I can accesses to HA authorization page, but after login just “Unable to connect to Home Assistant”.
I can see: “Login attempt or request with invalid authentication from 192.168.1.1” on front page and nothing in the log.
I tried add to configuration:
Thank you for help, but didn’t work . I’m not sure why I need port number, because there is no port number in my link in browser. Port number is set in router. So I tried with and without port.
If there is any type of log I can catch apart of main one?
By default, remote access to the device over the level 4 domain via the KeenDNS service works like this - you connect to the Internet center via the HTTPS protocol, and then you connect to the local device via the HTTP protocol via the HTTP protocol. Therefore, on the device for which we use the domain name of the 4th level, in its settings should not be excluded the possibility of using an HTTP connection, i.e. so that the option “Use only HTTPS” is not enabled. If you want to access via HTTPS, you can manually get your own certificate for the 4th level domain through the command line interface (CLI)
From router to HA required HTTPS or HTTP is enough?
You can use any of them.
Use 443 if you don’t want to have to put in a port number when connecting.
Lots of applications use their own ports. Port 80 on a Linux machine is reserved for root only (any port below 1024), and as such would complicate setups, and cause problems.
There are required settings for it to work, which, if you do not have access to change on your reverse proxy, will not work. I pointed to the documentation which shows the settings for NGINX. Without these settings, and with a standard reverse proxy configuration, NGINX will do the same thing as you describe.
The problem 100% solely lies in the REVERSE PROXY CONFIGURATION, which apparently you don’t have access to.