Running on port 443

Hi there,
I note quite a few people configure hass as port 8123 on the inside (default) and port 443 on the outside and use port redirection via their router.

Am I missing something or would that mean you use a different port when you’re on the outside to what you use when you’re at home? ie, have two bookmarks - one for inside, one for out?

I would prefer a single address & port regardless of whether I’m inside or outside.

So I tried it. Configured hass for port 443, but no matter what happens, hass reports a permission error when booting up…

Any thoughts on any of my ramblings?

Thx
JP

If you want to bind to a port below 1024, you have to run as root. But running HASS as root is not advisable, and HASS isn’t set to drop root privileges after start.

I have nginx being a reverse proxy for both internal and external clieents, so my bookmark uses the same port.

You could just run it on 8123 and forward 8123 to 8123 and just use 8123.

Yeah - looks like I’ll leave it at 8123 then - that’s my current config. At least it’s secure…

Thx
JP

443 is the default https port (you can blame ol’ Netscape for that) but did you set up SSL on your HA instance first?

If your router supports loopback, you don’t ever need the 8123 bookmark. I just use the https url (443) inside or outside of my network.

1 Like