Hass.io Add-on: LetsEncrypt wildcard

Hi,

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?

Thanks in advance!

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

If you want to go the docker way, there is a tutorial here using NginX :slight_smile: