I have managed to create a certificate for my ha.domain.com and it works well. Now I have for example the Unifi controller addon and want a certificate for that as well. Is there anyone who knows how to solve this?
I am thinking of either a wildcard or if it is possible to create cert for unifi.domain.com and ha.domain.com? And how to solve this in my port forwarding? Pointing port 443 to 8123 will make it impssible to also point 443 to 8443?
You will need to use a reverse proxy such as NginX or Caddy.
I think there is an addon for caddy but I’m not using it at the moment so I can’t help you on that point.
If you where using the regular Docker install of home assistant, you could use something like a Traefik continer. I think it’s the easiest solution.
Maybe someone could make a Traefik addon for hassio ?
I don’t use hass.io or the addons but I’m sure I’ve read there’s one for a proxy?
If I was doing this without hass.io I’d point the external port 443 at my reverse proxy and either
use two seperate dns names pointing to the same ddns address, the proxy can forward to the correct address / port internally dependant on the dns name. For this you’d need 2 cert, or a wildcard cert that covers both dns names (using subdomains e.g. ha.diddle.dee.com and unify.diddle.dee.com)