File provider routes show both entrypoints when only one is attached

I've noticed that routes I've defined with the file provider use both my web (80) and websecure (443) entry points even though I only have one entrypoint specified on each route.

Docker container labels only show one entry point per route as I've defined them.

labels:
        traefik.enable: 'true'
        traefik.http.routers.grafana-https.rule: 'Host(`grafana.domain.com`)'
        traefik.http.routers.grafana-https.middlewares: 'compress-content-security@file'
        traefik.http.routers.grafana-https.entrypoints: 'websecure'
        traefik.http.routers.grafana-https.tls.certresolver: 'leCloudflareDns'
        traefik.http.routers.grafana-https.tls.options: 'minimalTLS13@file'
        traefik.http.routers.grafana-http.rule: 'Host(`grafana.domain.com`)'
        traefik.http.routers.grafana-http.entrypoints: 'web'
        traefik.http.routers.grafana-http.middlewares: 'redirect-https@file'

routers:
    duplicati-appsrv-https:
      rule: "Host(`dup.domain.com`)"
      entrypoints:
        - "websecure"
      service: "duplicati-appsrv"
      middlewares:
        - "compress-content-security"
      tls:
        certresolver: "leCloudflareDns"
        options: "minimalTLS13"

    duplicati-appsrv-http:
      rule: "Host(`dup.domain.com`)"
      entrypoints:
        - "web"
      service: "duplicati-appsrv"
      middlewares:
        - "redirect-https"

Does anyone know why this happens?

Hi @saltystew94,

It seems to be a typo, could you try with entryPoints: ? :slight_smile:

hi @jbd,

That was the issue, I forgot that the yaml file is case sensitive as I just switched over from a toml file.

Thanks for the help!

1 Like