How do I serve a LetsEncrypt certificate for requests lacking SNI?

I'm setting up a little home server using docker compose, and I'm using traefik to terminate my SSL connections/request certificates from Let's Encrypt. For the most part, this is working great, so thanks for building this!

One client does not send SNI when making the connection to my traefik container. Don't ask me why, I'm not sure. What I'd like to do is have Traefik default to the certificate when it receives a request without SNI, instead of the Traefik default certificate.

The documentation suggests defaultGeneratedCert, but I can't figure out where to put the labels in my docker-compose.yml.

Here's what I have so far:

    # The official v2 Traefik docker image
    image: traefik:v2.10
    restart: unless-stopped
    # Enables the web UI and tells Traefik to listen to docker
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entrypoints.web.address=:80"
      - "--entrypoints.websecure.address=:443"
      - "--certificatesresolvers.myresolver.acme.tlschallenge=true"
      #- "--certificatesresolvers.myresolver.acme.caserver="
      - ""
      - ""
      - "--log.level=DEBUG"
      - "traefik.tls.stores.default.defaultgeneratedcert.resolver=myresolver"
      - ""
      - traefik.http.routers.traefik-secure.tls=true
      - "traefik.http.routers.traefik-secure.tls.certresolver=myresolver"
      - traefik.enable=true
      # The HTTP port
      - "443:443"
      - "80:80"
      # So that Traefik can listen to the Docker events
      - /var/run/docker.sock:/var/run/docker.sock
      - ./traefik/files:/letsencrypt

Thanks for any help!

Similar topics I've read:

Check ACME Default Cert (doc).

Yep! That's where I started. You'll note that I've added those labels to my docker-compose.yml file:

They just don't seem to do anything. I'm assuming I have them in the wrong place?

Looks according to doc:

## Dynamic configuration
  - "traefik.tls.stores.default.defaultgeneratedcert.resolver=myresolver"
  - ""
  - ","

Do you get LE certs at all?

Yep! My other containers get LE certs.