SSL issues when (empty) rules directory is defined

When enabling

traefik fails to find the SSL certificates - previously it was successfully loading them. Now with this setting enabled it fails and serves its internal default certificate

How can this be fixed?

Version: traefik:v2.10.5


image: traefik:v2.10.5
    container_name: proxy
    hostname: proxy
      - --log.level=DEBUG
      - "--providers.docker=true"
      - "--providers.docker.swarmMode=false"
      - --providers.docker.endpoint=unix:///var/run/docker.sock
      - "--providers.docker.exposedbydefault=false"
      - ""
      - "--entrypoints.web.address=:80"
      - "--entrypoints.websecure.address=:443"
      - # NOTICE this directory is completely empty!
      - "--providers.file.filename=/etc/traefik/dynamic_conf.toml"

Turns out that this gets fixed when I move the dynamic_conf.toml which contains the SSL config inside this directory.

It was previously specified via