I am running Traefik in a lxc container, Traefik keeps craching in very start complaining that there is a missing field in tls in dynamic config file

I am running Traefik binaries on a Alpine lxc container, Traefik keep craching in very start complaining that there is a missing field in tls in dynamic config file as indicated in below log line:

{"level":"error","providerName":"file","error":"/etc/traefik/config.d/config.yaml: field not found, node: tls","time":"2024-11-02T12:45:31Z","message":"Error while building configuration (for the first time)"}

I did everything I need to know what Traefik is annoying of? but i failed in all ways so, please I need to understand what I am missing to correct, add or remove in my configurations.

Traefil.yaml file

global:
  checkNewVersion: true

api:
  dashboard: true
  insecure: true

ping: {}

providers:
  file:
    directory: /etc/traefik/config.d
    watch: true

entryPoints:
  http:
    address: ":80"
    http:
      redirections:
        entryPoint:
          to: https
          scheme: https

  https:
    address: ":443"
    http:
      tls:
        certResolver: letsEncrypt

  traefik:
    address: ":8080"

certificatesResolvers:
  letsEncrypt:
    acme:
      email: any@any.net   
      storage: /etc/traefik/ssl/acme.json
      dnsChallenge:
        provider: cloudflare
        resolvers:
          - "1.1.1.1:53"
          - "1.0.0.1:53"

log:
  filePath: /etc/traefik/logs/traefik.log
  format: json
  level: WARN

accessLog:
  filePath: /etc/traefik/logs/traefik-access.log
  format: json
  filters:
    statusCodes:
      - "200"
      - "400-599"
    retryAttempts: true
    minDuration: "10ms"
  bufferingSize: 0
  fields:
    headers:
      defaultMode: drop
      names:
        User-Agent: keep

Dynamic configiratiuons files 'config.yaml'

http:
  routers:
    traefik:
      entryPoints:
        - http
      rule: "HOST(`traefik.example.net`)"
      middlewares:
        - https-redirectscheme
        - default-headers
      service: api@internal

    traefik-secured:
      entryPoints:
        - https
      rule: "HOST(`traefik.example.net`)"
      middlewares:
        - traefik-auth
      tls:
        certResolver: letsEncrypt
        domains:
          - main: "example.net"
          - sans: 
            - "*.example.net"
      service: api@internal

    proxmox:
      entryPoints:
        - "https"
      rule: "Host(`pve.example.net`)"
      middlewares:
        - default-headers
        - https-redirectscheme
        - cors
      service: proxmox
      tls: {}

  services:
    proxmox:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: "https://192.168.2.250:8006"

  middlewares:

    traefik-auth:
      basicAuth:
        users:
          - "username:$$apr1$$********$$Bq9JcuQLIetqGj/9PWUm40"

    https-redirectscheme:
      redirectScheme:
        scheme: https
        permanent: true

    default-headers:
      headers:
        frameDeny: true
        browserXssFilter: true
        contentTypeNosniff: true
        forceSTSHeader: true
        stsIncludeSubdomains: true
        stsPreload: true
        stsSeconds: 15552000
        customFrameOptionsValue: SAMEORIGIN
        customRequestHeaders:
          X-Forwarded-Proto: https

    secured:
      chain:
        middlewares:
          - default-whitelist
          - default-headers

  tls:
    stores:
      default:
        defaultGeneratedCert:
          resolver: letsEncrypt
          domain:
            main: example.net
            sans:
              - "*.example.net"

    options:
      default:
        maxVersion: VersionTLS13
        cipherSuites:
          - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
          - TLS_AES_128_GCM_SHA256
          - TLS_AES_256_GCM_SHA384
          - TLS_CHACHA20_POLY1305_SHA256
      maxtls12:
        maxVersion: VersionTLS12

Help will be appreciated.
Thank you.