Invalid config for [http]: not a file for dictionary value for SSL

I have been stuck with my problem for a good while now, for some X reason I just cannot get the SYMLINK’s working (I suppose?).

Here is my configuration for docker-compose.yaml:

HomeAssistant volumes

    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /opt/homeassistant/config:/config
      - /etc/localtime:/etc/localtime:ro
      - /opt/LetsEncrypt/appdata/config/etc/letsencrypt:/opt/LetsEncrypt/appdata/config/etc/letsencrypt
    devices: 
      - /dev/ttyUSB0:/dev/ttyUSB0
    restart: unless-stopped
    privileged: true
    network_mode: host

Swag and it’s volumes

> swag:
    image: linuxserver/letsencrypt
    container_name: swag
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Helsinki
      - URL=*mydomain*.duckdns.org
      - SUBDOMAINS=wildcard
      - VALIDATION=duckdns
      - DNSPLUGIN=cloudflare #optional
      - PROPAGATION= #optional
      - DUCKDNSTOKEN=*my created token is here*
      - EMAIL= #optional
      - ONLY_SUBDOMAINS=false #optional
      - EXTRA_DOMAINS= #optional
      - STAGING=false #optional
    volumes:
      - /opt/LetsEncrypt/appdata/config:/config
    ports:
      - 443:443
      #- 80:80 #optional
    restart: unless-stopped

I did the tricks that were helping for others just fine:

cd homeassistant/config
ln -s -T /opt/LetsEncrypt/appdata/config/etc/letsencrypt/live/*MyDomainName*.duckdns.org /opt/homeassistant/config/ssl

That command creates the SSL folder under homeassistant/config/ssl, and I gave 777 access for the folder just to test and these are the permissions that it shows me:

 HATT@HACon:/opt/homeassistant/config/ssl$ ls -l
total 24
lrwxrwxrwx 1 HATT HATT   48 heinä  27 00:31 cert.pem -> ../../archive/*MyDomainName*.duckdns.org/cert1.pem
lrwxrwxrwx 1 HATT HATT   49 heinä  27 00:31 chain.pem -> ../../archive/*MyDomainName*.duckdns.org/chain1.pem
lrwxrwxrwx 1 HATT HATT   53 heinä  27 00:31 fullchain.pem -> ../../archive/*MyDomainName*.duckdns.org/fullchain1.pem
-rwxrwxrwx 1 HATT HATT 9237 heinä  27 00:31 priv-fullchain-bundle.pem
lrwxrwxrwx 1 HATT HATT   51 heinä  27 00:31 privkey.pem -> ../../archive/*MyDomainName*.duckdns.org/privkey1.pem
-rwxrwxrwx 1 HATT HATT7125 heinä  27 00:31 privkey.pfx
-rwxrwxrwx 1 HATT HATT  692 heinä  27 00:31 README

So with all that, I put in the HomeAssistant’s configuration.yaml this:

 http:
  base_url: https://*MyDomainName*.duckdns.org:8123
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

and I can’t get anywhere, this is the full error:

not a file for dictionary value @ data['http']['ssl_key']. Got '/ssl/privkey.pem'. (See /config/configuration.yaml, line 10).

What am I missing here? I felt like I was so close to figuring this out from others posts, but in my eyes I’ve done everything that they did - even with variations. :smiley: Still no luck

Ressolved, paths didn’t match what I had on my vm. Forgot to update on this, now can’t remember exactly what path was bad.