Cannot set-up SSL With Home Assistant Docker

Hi there,

I’ve been trying to set up Home Assistant with HTTPS and have been struggling to get it to work. I followed the guide in the certbot website and ran certbot --apache and generated the right files for HTTPS, it seems to be working with my other web apps.

When I try to apply it to Home Assistant, it just says “not a file for dictionary value”.

The files live in /etc/letsencrypt/live/MYDOMAIN/ so I added a volume to the HA Docker container with Portainer and called it /ssl

I added the following to my configuration.yaml;

  server_port: 8123
  ssl_certificate: /ssl/fullchain.pem
  ssl_key:  /ssl/privkey.pem

I’m completely stuck and ran out of ideas, can anyone help me?

What most folks do, and I do, is put a nginx proxy in front of HA.

1 Like

Where did you get the option “base_url” from???

base_url is deprecated since 2020!

Or the OP runs a very, very old version of HA, or he’s following a very, very old guide…

Please show that configuration

There wasn’t a lot of info on it so I tried my best to find what I could, I actually just got it working by following @outermosthouse steps in this thread