Traefik reads but doesn't load dynamic configuration

I have setup Traefik on Ubuntu (no docker).
The problem is that the dashboard is not showing any of the components of my dynamic configuration, but if I mess it up, Traefik reports that the dynamic configuration is not valid... so it seems that he's checking if the config is valid, but it's not loading it

/etc/traefik/traefik.yaml

providers:
  file:
    directory: /etc/traefik/dynamic
    watch: true

api:
  dashboard: true
  insecure: true
  debug: true

log:
  level: DEBUG

/etc/traefik/dynamic/dynamic.yaml

entryPoints:
  cloudflare_2083:
    address: :2083

  middlewares:
    HSTS:
      headers:
        stsSeconds: 15552000
        stsIncludeSubdomains: true
        forceSTSHeader: true
        stsPreload: true
        frameDeny: true
        browserXssFilter: true

  routers:
    routerSeafile:
      entryPoints: cloudflare_2083
      service: seafile
      rule: "Host(`sf.me.it`)"
      middlewares:
        - "HSTS"
      tls: {}
    routerSeafHttp:
      entryPoints: cloudflare_2083
      service: seafhttp
      rule: "Host(`sf.me.it`) && PathPrefix(`/seafhttp`)"
      middlewares:
        - "HSTS"
      tls: {}
    routerSeafdav:
      entryPoints: cloudflare_2083
      service: seafdav
      rule: "Host(`sf.me.it`) && PathPrefix(`/seafdav`)"
      middlewares:
        - "HSTS"
      tls: {}
    routerCode:
      entryPoints: cloudflare_2083
      service: code
      rule: "Host(`seafile.lab.me.it`)"
      middlewares:
        - "HSTS"
      tls: {}

  services:
    seafile:
      servers:
        - url: http://seafile.lab.me.it:8000
    seafhttp:
      servers:
        - url: http://seafile.lab.me.it:8082
    seafdav:
      servers:
        - url: http://seafile.lab.me.it:8080
    code:
      servers:
        - url: http://seafile.lab.me.it:9980

tls:
  certificates:
    - certFile: /etc/traefik/certs/star_me_it.pem
      keyFile: /etc/traefik/certs/star_me_it.pem.key
      stores:
        - me
  options:
    default:
      minVersion: VersionTLS12

entrypoints belongs in static, routers, middlewares and services in dynamic config.

1 Like

I moved my entryPoints to the static file, but still I don't see any of my routers, middlewares or services in the dashboard (but I see the routers, middlewared and services of the dashboard/api)

middlewares:
  HSTS:
    headers:
      stsSeconds: 15552000
      stsIncludeSubdomains: true
      forceSTSHeader: true
      stsPreload: true
      frameDeny: true
      browserXssFilter: true

routers:
  routerSeafile:
    entryPoints: cloudflare_2083
    service: seafile
    rule: "Host(`sf.myself.it`)"
    middlewares:
      - "HSTS"
    tls: {}
  routerSeafHttp:
    entryPoints: cloudflare_2083
    service: seafhttp
    rule: "Host(`sf.myself.it`) && PathPrefix(`/seafhttp`)"
    middlewares:
      - "HSTS"
    tls: {}
  routerSeafdav:
    entryPoints: cloudflare_2083
    service: seafdav
    rule: "Host(`sf.myself.it`) && PathPrefix(`/seafdav`)"
    middlewares:
      - "HSTS"
    tls: {}
  routerCode:
    entryPoints: cloudflare_2083
    service: code
    rule: "Host(`seafile.lab.myself.it`)"
    middlewares:
      - "HSTS"
    tls: {}

services:
  seafile:
    servers:
      - url: http://seafile.lab.myself.it:8000
  seafhttp:
    servers:
      - url: http://seafile.lab.myself.it:8082
  seafdav:
    servers:
      - url: http://seafile.lab.myself.it:8080
  code:
    servers:
      - url: http://seafile.lab.myself.it:9980

tls:
  certificates:
    - certFile: /etc/traefik/certs/star_myself_it.pem
      keyFile: /etc/traefik/certs/star_myself_it.pem.key
      stores:
        - myself
  options:
    default:
      minVersion: VersionTLS12

@bluepuma77 I've found the issue. I was not nesting the routers, services and middlewares under http: