Traefik v2 https redirect doesn't work

Hi,
I have the following traefik.yml file:

---

providers:
  file:
    filename: /etc/traefik/traefik.yml

log:
  level: debug

api:
  dashboard: True

entryPoints:
  web:
    address: ":80"
  web-secure:
    address: ":443"
  metrics:
    address: "127.0.0.1:8082"

metrics:
  prometheus:
    entryPoint: metrics

accessLog: {}

http:
  routers:
    prometheus-router:
      rule: "PathPrefix(`/prometheus`)"
      service: prometheus
      entryPoints:
        - web
        - web-secure
      middlewares:
        - https-redirect
    grafana-router:
      rule: "PathPrefix(`/grafana`)"
      service: grafana
      entryPoints:
        - web
        - web-secure
      middlewares:
        - https-redirect
    api:
      rule: "PathPrefix(`/api`) || PathPrefix(`/dashboard`)"
      service: api@internal
      entryPoints:
        - web
        - web-secure
      middlewares:
        - https-redirect
  middlewares:
    https-redirect:
      redirectScheme:
        scheme: https
        permanent: true
        port: 443
  services:
    prometheus:
      loadBalancer:
        servers:
          - url: "http://127.0.0.1:9090/"
    grafana:
      loadBalancer:
        servers:
          - url: "http://127.0.0.1:3000/"

tls:
  certificates:
    - certFile: /etc/traefik/mydomain.com.cert
      keyFile: /etc/traefik/mydomain.com.key

It worked without https, but since I have configured the https-redirect I keep getting "404 page not found" errors when I try to open it with https://mydomain.com/prometheus.

When I remove the https-redirect and I call http://mydomain.com/prometheus it works fine.

Any idea?

my god.. I should read the documentation. I need to terminate the tls connection at the routers, so I set tls {} for every router and now it works for all routers.